Your data is out of order, chronologically. The chart is drawing a line from Feb 2 to Jan 28 to Jan 29. If you sort the DataTable (or enter your data in chronological order) the chart will look like what you want.
On Saturday, February 2, 2013 4:03:05 AM UTC-5, Daniel K wrote: > > I want to draw a simple "time-based" line chart with irregular time > distances. > > As you can see in the attached file the Chart API draws two lines for > that. I want the Chart-API > to just draw one "combined" line. > > Thats my code: > > data_test.addRows(3); > > data_test.setValue(0, 0, new Date(2013, 1, 02)); > > data_test.setValue(0, 1, 7); > > data_test.setValue(1, 0, new Date(2013, 0, 28)); > > data_test.setValue(1, 1, 11); > > data_test.setValue(2, 0, new Date(2013, 0, 29)); > > data_test.setValue(2, 1, 11); > > > Can you help me with that? > > Thanks in advance! > > > > <https://lh5.googleusercontent.com/-xN0dsEaJKZE/UQzUb9zt-YI/AAAAAAAAAIE/WTlHX8NfIFU/s1600/example.tiff> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
