-4
rated 0 times
[
1]
[
5]
/ answers: 1 / hits: 27774
/ 8 Years ago, thu, april 28, 2016, 12:00:00
I am having problems with formatting my chart axis and I am not able to find an example for the updated version 2.0.
How can I (for example) make 2000000 to €2.000.000?
My fiddle: 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
}
});
};
More From » jquery