[Chartjs]-Chart js scatter graph labels

1👍

That is surprising that it doesn’t work since the reverse option is a base config item (not specific to any certain scale). When I’m back at a computer I will investigate if this is a bug.

In the meantime, you can use the tick callback option to format your labels. Here is an example.

scales: {
        xAxes: [{
            ticks: {
                // Create mm:ss labels
                callback: function(value, index, values) {
                    return moment.duration(value, 'seconds').format('mm:ss'); 
                }
            }
        }]
    }

Leave a comment