Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some imports are missing in [email protected]

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

like image 568
E-Mohamed Avatar asked Oct 14 '25 16:10

E-Mohamed


1 Answers

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

like image 142
KidRomesh Avatar answered Oct 17 '25 07:10

KidRomesh