valor-software / ng2-charts

Beautiful charts for Angular based on Chart.js
http://valor-software.github.io/ng2-charts/
MIT License
2.35k stars 575 forks source link

ng2-charts does not provide module bifurcation #1143

Closed vishranti5 closed 3 months ago

vishranti5 commented 5 years ago

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

vishranti5 commented 5 years 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

vishranti5 commented 3 months ago

issue is no longer there