I have a problem with setSelection method.
I am able to use getSelection, for instance in chartEvents:
chartEvents={
[
{
eventName: 'select',
callback: ({ chartWrapper }) => {
const chart = chartWrapper.getChart()
const selection = chart.getSelection()
...
}
]
}
But I did not find a way to set chart selection.
I need to sync 2 charts - when user selects data point in one chart, I need same point selected in second chart.
Does anybody have solution for this?
I have tried to get original google chart object, but cannot get it working.
<Chart
onLoad={(chart: GoogleViz) => {
setChart(chart)
}}
....
I use onLoad callback, but even in this chart: GoogleViz, there does not seem to be setSelection method anywhere.