Closed vishranti5 closed 3 months ago
I have created webcomponent using angular elements. This webcomponent has bar chart for which we used ng2-charts. It is working fine but the size of generated bundle is high. currently we imported whole chartsModule from ng2-chart, instead of this can we only import barchartsmodule? Is there any such option available, so that i can minimize bundle size
issue is no longer there
Reproduction of the problem
ng2-charts is a port & modification of Chart.js component for Angular 2. Sometimes the issue is related with Chart.js instead of ng2-charts. To confirm, if the issue shows in a pure Chart.js project, it is a issue of Chart.js. Pure Chart.js starting template: https://jsfiddle.net/Hongbo_Miao/mvct2uwo/3/
If the issue does not show in a pure Chart.js project, and shows in a ng2-charts project, please try to provide a minimal demo of the problem. ng2-charts starting template: http://plnkr.co/edit/Ka4NXG3pZ1mXnaN95HX5?p=preview