I have recently update chart.js
from 2.9.4
to 3.6.0
and ng2-chart
from 2.4.3
to 3.0.8
.
I have followed the migration guide from chart.js to migrate to v3.X
I've update my imported module from import { ChartsModule } from 'ng2-charts';
to import { NgChartsModule } from 'ng2-charts';
as provided in the ng2-charts documentation
But since i've update thoses package some imports seems to be missing.
For example before updating i've used to import import { Label, PluginServiceGlobalRegistrationAndOptions } from 'ng2-charts';
but since the update those import are missing from ng2-charts package, and I havn't found any information about this in ng2charts website / github or chart.js.
Does anyone face the same issue concerning missing import due to the migration ?
NB: I'm using [email protected]
Thank you
They took away the labels and color and some schemas i guess we have to declare those in component.ts... eg: labels:[] and then declare them to your own
I dont know how to post the code but here is a link to the new charts in github
https://github.com/valor-software/ng2-charts.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With