Chartjs-How do I set the vertical line distance in Time Cartesian charts in chartjs?

0👍

Your scale config doesn’t seem consistent.
You added "ticks" inside the "time" node.

Try thee following:

scales: {
    x: {
        type: 'time',
        ticks: {
            stepSize: 15
        },
        time: {
            unit: 'minute',
            displayFormats: {
                minute: 'HH:mm',
                hour: 'HH:mm',
            }
        },
        min: '{{ tour.chart_min }}',
        max: '{{ tour.chart_max }}',
    },
    y: { beginAtZero: false }
},

Leave a comment