First, use actual Dates, either with the JS Date constructor, or with the string notation "Date(yyyy, mm, dd)"
In order to mix two or more series where not all series have the same domain values, you should just use null values where there is no series value, and then set the option interpolateNulls to true. On Sun, Jul 17, 2016 at 11:37 AM, Raj Patel <[email protected]> wrote: > Hello all, > > I want to create a single line graph for multiple columns (lines) whose x > axis should be datetime object and the y axis is some integer number for > every column. > > Example: > So say I have two lines (can be more) - Line 1, Line 2 > And the data being --> > Line 1 -> [['2014-01-13 00:05:51', 50], ['2014-05-15 13:12:10', 100], > ['2015-01-04 04:11:50', 10], ['2015-05-11 23:11:10', 180]] > Line 2 -> [['2014-02-11 02:56:33', 10], ['2015-01-15 02:50:18', 80], > ['2016-01-24 11:12:10', 100]] > > So as you may have figured out there may not be common x values for both > the lines. But the example on the Line Chart page > <https://developers.google.com/chart/interactive/docs/gallery/linechart#creating-material-line-charts> > requires > value corresponding to each column. > > Is there any such chart option that I am missing? > Any help would be appreciated. > Thanks. > > -- > 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 > https://groups.google.com/group/google-visualization-api. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/4d51f2d4-d761-4dd4-a974-a723c48664a3%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/4d51f2d4-d761-4dd4-a974-a723c48664a3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- 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 https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOMbonjmDU8%3Dc8q92KinO1j4LnzWZ49B%2BB6361EwLWUkA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
