Chartjs-How to disable scientific notations in logarithmic chart type

0👍

You have 2 options, switching to the new beta version where it is default or implement it yourself in the following way

options: {
        scales: {
            yAxes: [{
                ticks: {
                    // Include a dollar sign in the ticks
                    callback: function(value, index, values) {
                        return calculateNormalValueFromScientetific(value);
                    }
                }
            }]
        }
    }

Documentation of it: https://www.chartjs.org/docs/latest/axes/labelling.html#creating-custom-tick-formats

0👍

My solution: update to 3 beta 8 version. Still don`t know why it didn’t work previously.

Leave a comment