chartjs y axis prefix

Solutions on MaxInterview for chartjs y axis prefix by the best coders in the world

showing results for - "chartjs y axis prefix"
Grady
01 Aug 2016
1var options = {
2    scales: {
3        yAxes: [
4            {
5                ticks: {
6                    callback: function(label, index, labels) {
7                        return label/1000+'k';
8                    }
9                },
10                scaleLabel: {
11                    display: true,
12                    labelString: '1k = 1000'
13                }
14            }
15        ]
16    }
17}