Chartjs-How to make intermittent lines to represent periods of presence and absence on a given line during it's length on Multi Axis chart?

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',
            },

Leave a comment