0👍
Oh deer, you just need to put null values in the json to make lines disappear for an occurrence.
{
label: 'CELAYA',
borderColor: window.chartColors.Color2,
backgroundColor: window.chartColors.Color2,
fill: false,
data: [
null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,-17,null,-16,-16,-18,-16,-15,-14,-11,-8,-11,-17,-16,-17,null,null,null,null,null,null,null,null,null,null, ],
yAxisID: 'y-axis-42',
},
- Chartjs-Attach data to label (Chart.js & Django 3)
- Chartjs-How to achieve a mixed chart of 'horizontal' bars and line chart using Chart.js?
Source:stackexchange.com