Chart.js: [Documentation] Plugin API Hooks

Created on 30 Oct 2017  路  1Comment  路  Source: chartjs/Chart.js

The hardest thing I'm encountering while trying to write a plugin to modify a bar chart is to know what hooks I should be doing the changes in. For example, if I wanted to edit the value of the chart, I can do that in beforeUpdate, however I can't do that in afterDraw.

I'm sure there are even more nuances that I am missing in each individual hook beside just when the hook is called. It'd be a great help in that part of the documentation.

documentation

Most helpful comment

@smcguinness good idea. I think we should create a flow chart of the create / update / render process to document where the hooks come in

>All comments

@smcguinness good idea. I think we should create a flow chart of the create / update / render process to document where the hooks come in

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adriantombu picture adriantombu  路  3Comments

joebirkin picture joebirkin  路  3Comments

Woogles picture Woogles  路  3Comments

bytesnz picture bytesnz  路  3Comments

SylarRuby picture SylarRuby  路  3Comments