Appearance
Custom Events
This experimental feature allows users to add interactivity to a chart app.
The custom events section supports three Google Charts events: select, ready, and error. Custom events must be provided as JavaScript code.

Starter Template
View the hint and click the link below the editor to write the starter template to your editor.
js
return [
{
eventName: "select",
callback() {
console.log("Selected", chartWrapper?.getChart()?.getSelection())
},
},
{
eventName: "ready",
callback() {
console.log("Chart ready", chartWrapper?.getChart())
},
},
{
eventName: "error",
callback(args) {
console.log("Chart error", args)
},
},
]