You have to add a tooltip column for each data series, like this: http://jsfiddle.net/asgallant/TD92C/14/
On Saturday, December 7, 2013 6:41:32 PM UTC-5, Rob van Eck wrote: > > I have a Google LineChart with multiple lines. These points do not share > the same X value's so i have to format my data in a certain way to make it > work: > > var data = google.visualization.arrayToDataTable([ > ["Y", "Your X & Y", "Product 1", "Product 2", "Product 3"], > [419, 589, null, null, null], > [386, null, 504, null, null], > [386, null, 526, null, null], > [387, null, 543, null, null], > [395, null, 564, null, null], > [402, null, 591, null, null], > [408, null, 612, null, null], > [378, null, null, 501, null], > [398, null, null, null, 600], > [460, null, null, null, 500] > ]); > > Now i want to add custom tooltips to these lines, i've tried adding an > extra column and setting the role to tooltip.. but this only affects the > first line. > > see both charts (with and without tooltip): http://jsfiddle.net/TD92C/8/ > > How do i add custom tooltips for all lines? 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
