score:7

Accepted answer

this can be done using the major ticks option in chartjs.

scales: {
  xaxes: [{
    type: 'time',
    time: {
        unit: 'hour',
        stepsize: 3, // i'm using 3 hour intervals here
        tooltipformat: 'hh:mm',
    },
    ticks: {
        major: {
           enabled: true, // <-- this is the key line
           fontstyle: 'bold', //you can also style these values differently
           fontsize: 14 //you can also style these values differently
        },
    },
  }]
}

this produces an x axis like the follwong this produces an x axis like this


Related Query

More Query from same tag