Chartjs-How to display half hour ticks on x-axes

0👍

This is my setting, using v3.6.0.
You can ignore y axis, just let you know mine works.

scales: {
        x: {
          type: 'time',
          time: {
            unit: 'minute',
            stepSize: 30
          },
          min: tradingDuration().openTime,
          max: tradingDuration().closeTime
          // title: {
          //   display: true,
          //   text: 'Date'
          // }
        },
        y: {
          min: limitDown,
          max: limitUp
        }
      },

Leave a comment