Today the line chart only support labels for the x-axis and so whatever you pass in will be treated as a string and will be equally populated on the x-axis. We are addressing this issue but I can not provide a time line. In the mean while you may try the annotated time line http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html
ChartMan On Wed, Jul 29, 2009 at 8:52 PM, RR <[email protected]> wrote: > > My requirement is to plot a set of Date-Value pairs on a line chart. > It works perfectly well if the data passed to the Linechart has equal > distribution of dates, e.g. 01JAN2009, 01FEB2009, 01MAR2009, > 01APR2009, 01MAY2009 > Problem arises when the date range is not equal. So, for example, if > in my list of data if the date and values are as follows: > 21JAN2007 – 45 > 16MAY2008 – 68 > 19SEP2009 – 56 > 29OCT2009 – 78 > 05NOV2009 – 67 > 15DEC2009 – 76 > > Linechart is plotted literally. That is, the x-axis will have the > above dates plotted as it is. As a result, it does not display the > correct trend. > > I am passing the x axis as ColumnType.DATE, thinking that the API > should take care of normalizing the dates before plotting the graph. > However, it doesn't. > > Is there a way to normalize the dates so that it shows the fairly > correct curve on the line chart? > Any help would be greatly appreciated. > > Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
