Provide chartjs object when Chart component is totally instantiated #1840
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
vue2-portable
Milestone
I observed that that Chart component wrapper instantiate the ChartJS dynamically, and this makes difficult to load and register ChartJS plugins.
I propose to expose the ChartJS component as soon that object is instantiated, so parents components can register plugins.
It is very easy to achieve replacing the method initChart method with something like:
Note that
this.$emit('loaded', this.chart)
was added passing the ChartJS object.The text was updated successfully, but these errors were encountered: