0👍
✅
Override beforeDatasetsDraw
Chart.pluginService.register({
beforeDatasetsDraw: function(chart) {
for (dataset of chart.config.data.datasets) {
for(data of dataset._meta[chart.id].data) {
data._model.skip = false;
data._model.tension = 0;
}
}
}
});
0👍
Instead of null
values try with ‘0’, or the minimum value possible.
x-labels: 08:00, 09:00, 10:00, 11:00, 12:00
y-line: 12, 0, 10, 0, 15
y-bar: 0, 25, 0, 30, 0
It is not able to process null
. Hope this helps.
Source:stackexchange.com