Skip to content

Allow listening to other events #122

@pchapman

Description

@pchapman

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions