[英]displaying entire value on the y-axis in highcharts when the range between the intervals are high
If the data is small the y-axis looks like this enter image description here 如果数据较小,则y轴看起来像这样, 在此处输入图像描述
But if the data range is high then it will be like enter image description here 但是,如果数据范围较大,则就像在此处输入图像说明
How can i remove the dots and show the entire value in the 2 image like it is displaying in the 1st image 我如何删除点并在2张图片中显示整个值,就像在1张图片中显示的那样
formatter: function() {
var value = this.value.toFixed( 0 );
if ( value > 999999999 ) {
return parseInt( value / 1000000000 ) + 'B';
} else if ( value > 999999 ) {
return parseInt( value / 1000000 ) + 'M';
} else if ( value > 9999 ) {
return parseInt( value / 1000 ) + 'K';
} else {
return parseInt( value );
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.