We could only apologize in the name of js.... :)
Between this ugly Date implementation, and not using js date, we preferred
the first (and still think its better).

VizGuy


On Wed, Apr 29, 2009 at 2:36 PM, Churk Y. Leung <[email protected]> wrote:

> It is not a bug, it is how the programming world does things. Just like an
> empty array start at 0, So therefore the month starts at 0 also. Which means
> Jan = 0, and Feb = 1. I didnt noticed this at first when I started
> implementing my app, but very quickly realize and just subtract 1 from the
> month will give you the value you need.
>
> Churk Y. Leung
> [email protected]
>
>
>
> On Tue, Apr 28, 2009 at 12:56 PM, ngchanman <[email protected]> wrote:
>
>>
>> For the following URL:
>> http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html
>> The example data states January for the data point:
>>
>> However the exmaple graph starts from February.
>>
>> ....
>>
>> data.setValue(0, 0, new Date(2008, 1 ,1));
>>        data.setValue(0, 1, 30000);
>>        data.setValue(0, 4, 40645);
>>        data.setValue(1, 0, new Date(2008, 1 ,2));
>>        data.setValue(1, 1, 14045);
>>        data.setValue(1, 4, 20374);
>>        data.setValue(2, 0, new Date(2008, 1 ,3));
>>        data.setValue(2, 1, 55022);
>>        data.setValue(2, 4, 50766);
>>        data.setValue(3, 0, new Date(2008, 1 ,4));
>> ....
>>
>>
>> Is this a bug in the API or is the date incorrctly formatted?
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to