Chartjs-How to display linear day ticks on x time-axe in Chartjs

1👍

I think the issue is that you are using round option in the time.
For what you need, you should use unit option, which is defining the time unit on the axis.

    scales: {
      x: {
        type: 'time',
        time: {
          unit: 'day' // <-- to use
        }
      },
      y: {
        title: {
          display: true,
          stacked: true,
          text: 'Секунды',
          beginAtZero: true
        }
      }
    }

Leave a comment