As Felix pointed out, if there is a meaning to the dates, i.e. when you're
plotting June 1st, June 2nd and June 10th, if the distance between June 1st
and June 2nd should appear smaller than the distance between June 2nd and
June 10th then the Line Chart is not for you and you should use the
ScatterChart (it has a mode to show lines).
If however you really want the line chart (no meaning to the dates) then
iterating through them and converting them to strings is the best solution.

- VizBoy.

On Fri, May 29, 2009 at 4:23 PM, Marc Guillemot <[email protected]> wrote:

>
> Hi,
>
> LineChart requires a String as first column
>
> http://code.google.com/apis/visualization/documentation/gallery/linechart.html
>
> I'd like to have Datetime as first column and use a DateFormat to
> format it right, but it seems that the LineChart really doesn't accept
> anything else than String in the first column.
>
> As a workaround I iterate through my String values, convert them to
> number, create a date and set the formattedValue but it is not really
> clean.
>
> Any better idea?
>
> Cheers,
> Marc.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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