I am currently utilizing Google charts to dynamically display some data.
My goal is to have two separate charts shown. The first chart will display f(x) vs. x, while the second chart will display g(x,y) vs. y (with a fixed x value). When hovering over a data point on the first chart, I would like the second chart to update and plot g(x,y) vs. y based on the selected x value.
For instance, if "1" was hovered over on the first chart, the second chart should refresh and draw g(1,y) vs. y.
Thus far, I have only managed to achieve this by manually binding the mouseover event using JavaScript and triggering a complete redraw of the second chart (by clearing its data and replacing it with new data corresponding to the x value that was hovered over). However, I am aware that there is an existing mechanism that allows for redrawing the chart using values from controls (such as sliders, see example here).
Does anyone happen to know if there is a way to link these two charts together so that the mouseover event can be utilized to update one chart with new parameters?