reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

How to call getChart and getCanvass #16

Closed dandonahoe closed 9 years ago

dandonahoe commented 9 years ago

Issue #10 mentions two methods:

which expose the internal ChartJS object, but I'm not sure how to actually call those. Could someone provide a quick example of invoking either of those methods?

heybenchen commented 9 years ago

Here's an example using getCanvass to bind a click on a point on the chart: https://gist.github.com/superchoob/08329444afe9c0f33afc

dandonahoe commented 9 years ago

Huge thanks @superchoob

ledsun commented 8 years ago

I cannot read an example at: https://gist.github.com/superchoob/08329444afe9c0f33afc

heybenchen commented 8 years ago

@ledsun I changed my username, try https://gist.github.com/heybenchen/08329444afe9c0f33afc

ledsun commented 8 years ago

Thanks a lot @heybenchen