Chart.js 2.0 Formatieren der Y-Achse mit Währungs- und Tausendertrennzeichen
Ich habe Probleme mit der Formatierung meiner Diagrammachse und kann kein Beispiel für die aktualisierte Version 2.0 finden.
Wie kann ich (zum Beispiel) 2000000 bis € 2.000.000 verdienen?
Meine Geige:https: //jsfiddle.net/Hiuxing/4sLxyfya/4
window.onload = function() {
var ctx = document.getElementById("canvas").getContext("2d");
window.myBar = new Chart(ctx, {
type: 'bar',
data: barChartData,
options: {
title: {
display:true,
text:"Figure"
},
legend: {
position: "bottom"
},
tooltips: {
mode: 'label',
bodySpacing: 10,
cornerRadius: 0,
titleMarginBottom: 15
},
scales: {
xAxes: [{
ticks: {}
}],
yAxes: [{
ticks: {
beginAtZero: true,
stepSize: 500000
}
}]
},
responsive: true
}
});
};