Accepted answer

in addition to the showlastlabel property, you may need to add the endontick flag to your example. for example:


xaxis: [{
    type: 'datetime',
    showlastlabel: true,
    endontick: true



use tickpositions array:(number) to specifically identify which indices you want displayed on your xaxis.

Related Query

More Query from same tag