There is no way I know of to duplicate that exactly, but you can get one of the two effects (line or tooltip). Drawing the line is technically inefficient, as you actually redraw the chart every time there is a 'onmouseover' event thrown for a data point, but I haven't noticed any performance problems when I tested it (see http://jsfiddle.net/asgallant/xwrVV/4/). The tooltips don't work there because redrawing the chart causes the chart to lose the mouseover info, so it doesn't know to create a new tooltip (though I added code to help you roll your own).
If you want tooltips without the line, you can get that effect just by setting the "focusTarget" option to "category" (see http://jsfiddle.net/asgallant/xwrVV/2/). On Tuesday, July 24, 2012 2:34:41 AM UTC-4, Tomasz Rybicki wrote: > > Vertical line that is following the mouse cursor, and activate the nearest > point on the chart. > > W dniu poniedziałek, 23 lipca 2012 17:53:07 UTC+2 użytkownik asgallant > napisał: >> >> What, exactly, are you referring to in the charts? I don't see anything >> that I recognize as a "crosshair". >> >> On Monday, July 23, 2012 5:15:14 AM UTC-4, Tomasz Rybicki wrote: >>> >>> Hi! >>> >>> I have a simple question - is there any efficient way to add crosshair >>> function to google charts? >>> Like these on highcharts: >>> http://www.highcharts.com/stock/demo/data-grouping >>> >> -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/kVEIDz6_m5IJ. 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.
