Answers for "format labels on chartjs"

2

chartjs y axis prefix

var options = {
    scales: {
        yAxes: [
            {
                ticks: {
                    callback: function(label, index, labels) {
                        return label/1000+'k';
                    }
                },
                scaleLabel: {
                    display: true,
                    labelString: '1k = 1000'
                }
            }
        ]
    }
}
Posted by: Guest on November-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language