I am binding data to a column chart via Javascript. the Y-axis shows the data unit in millions hence it shows the character 'M' next to the plot point values. I checked the documentation but that didnt help. Is there a way i can format the unit to show as MM for multimillion?
Here's the 'M' on Y-axis that i want to be changed to 'MM' /
I am binding data to a column chart via Javascript. the Y-axis shows the data unit in millions hence it shows the character 'M' next to the plot point values. I checked the documentation but that didnt help. Is there a way i can format the unit to show as MM for multimillion?
Here's the 'M' on Y-axis that i want to be changed to 'MM' http://jsfiddle/r6V8Z/
Share asked Jul 30, 2012 at 10:24 Adnan HusseinAdnan Hussein 2611 gold badge4 silver badges14 bronze badges 1- Here it is resolved, jsfiddle/r6V8Z/1 – Adnan Hussein Commented Jul 30, 2012 at 11:03
1 Answer
Reset to default 5Update the Y-axis formatter to this:
yAxis: {
labels: {
formatter: function () {
return this.value / 1000000 + 'MM';
}
},
min: 0,
title: {
text: 'Rainfall (mm)'
}
}
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745044745a4608025.html
评论列表(0条)