문제

Whenever I am setting up the min value to 0 on the Y-axis my ticks are changing to decimal numbers. The above code displays numbers like 80, 90, 100 on the Y-axis:

 yaxis:{
     autoscale: true,
     formatString: "%d"
 }

When min option is set the ticks are displayed like 80.00, 90.00, 100.00.

yaxis:{
     autoscale: true,
     min: 0,
     formatString: "%d"
 }

How can I avoid changing the string format when adding the min option?

도움이 되었습니까?

해결책

Try adding

tickInterval: x

For example:

yaxis:{
 autoscale: true,
 min: 0,
 formatString: "%d"
 tickInterval: 10
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top