roberthartung / google_charts

A Dart package to support Google's visualization api
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

LineChart handling events #7

Closed hangstrap closed 9 years ago

hangstrap commented 9 years ago

Could please add an example of how to add an event to the LineChart class.

The following code produces a compile errors about missing methods and getters

LineChart chart = new LineChart(document.getElementById('pdfChartValues')); selectHandler(_) { var selectedItem = chart.getSelection()[0]; }

chart.onSelect.listen( selectHandler); chart.draw(dataTable, options);