valor-software / ng2-charts

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

Bar Chart skipNull #1416 #1422

Closed kinjalgamit closed 2 years ago

kinjalgamit commented 2 years ago

Hello, Sorry I am not able to get you properly. My question is that I am using @ng2-charts in my angular project to display the BAR chart. and how I can configure skip null in its config. Does it supported or not for @ng2-charts. kindly suggest.

consider below my project configuration angular version is 14.0.0. ng2-charts : 3.0.11

Thanks, Kinjal Gamit

Reference to this: https://github.com/valor-software/ng2-charts/issues/1416

santam85 commented 2 years ago

This is not an issue, please refrain to open new support requests, consult the Chart.js documentation and stackoverflow for this.

Yes it does support it, as it supports all settings provided by Chart.js. skipNull is a dataset setting (https://www.chartjs.org/docs/latest/charts/bar.html#general) so wen providing configuration through the datasets or the data input you can pass it along for all the needed datasets, or override the default in the module config passing:

NgChartsModule.forRoot( {defaults: { datasets: { bar: {skipNull: true }}}} )