Chartjs-Remove empty spaces created by null values in Chart.js

0πŸ‘

βœ…

It’s quite simple, just do this in each dataset you want to remove (if there is no such values in the dataset array of course! If there is, is 100% understandable to have empty spaces):

data:{
   datasets: [{
            ...
            hidden: true,
            ...
        },],
}

Leave a comment