Chart.js 2.0 Formateando el eje Y con moneda y separador de miles
Tengo problemas para formatear el eje de mi gráfico y no puedo encontrar un ejemplo para la versión actualizada 2.0.
¿Cómo puedo (por ejemplo) hacer 2000000 a € 2.000.000?
Mi violín: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
}
});
};