Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google line chart overlapping tooltip

I've designed a graphing application using the google charts api. Below is an example graph I draw using the data. As you can see there are two graphs in the image. when I hover on a graph a tool tip appears with the relevant data! it's standard bt the problem is when the two graphs overlap, I can only view the tooltip of the graph that's drawn infront! how can I make the tool tip show the data from the graph that is beneath the first graph.?

enter image description here

like image 701
Imesh Chandrasiri Avatar asked Oct 04 '22 01:10

Imesh Chandrasiri


1 Answers

You can set focusTarget to "category" which will highlight all series at that X point and show them in the tooltip so that even overlaps will display both data points. See more on that option here.

You can alternatively add noise to the chart to dither the results so that overlaps don't display as overlaps.

like image 64
jmac Avatar answered Oct 13 '22 10:10

jmac