-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Labels
Description
Currently one can get a reference to goog.visualization via the promise provided by the pkg attribute. This is great, but it doesn't mean our needed chart type has been loaded. If something similar could be implemented for the chart constructor or instance, that'd be awesome. Then we could also take advantage of the full range of events that are provided by each chart type (ie., mouseovers, ready, error, etc...).
myChart.chart.then(function(chartInstance, viz) {
// viz is equivalent to google.visualization
viz.events.addEventListener(chartInstance, 'onmouseover', this.doFoo);
});
Alternatively, provide a way to register listeners on whichever events are desired.