Chartjs-Chart.js v2 โ€“ how to 'fill' the graph when using time scale

2๐Ÿ‘

โœ…

You want to use the min & max attributes of the time property :

options: {
    scales: {
        xAxes: [{
            type: "time",
            time: {
                min: /* Set your min here .. */,
                max: /* .. and your max here*/
            }
        }]
    }
}

Leave a comment