Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- eventName: "click",
- callback({}) {
- console.log("clicked");
- }
- }
- <Chart
- chartType="ScatterChart"
- width="80%"
- height="400px"
- data={data}
- options={options}
- legendToggle
- chartEvents={[
- {
- eventName: "ready",
- callback: ({ chartWrapper, google }) => {
- const chart = chartWrapper.getChart();
- google.visualization.events.addListener(chart, "onmouseover", e => {
- const { row, column } = e;
- console.warn("MOUSE OVER ", { row, column });
- });
- google.visualization.events.addListener(chart, "onmouseout", e => {
- const { row, column } = e;
- console.warn("MOUSE OUT ", { row, column });
- });
- }
- }
- ]}
- />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement