开发者

JPGraph: Forcing Y-Axis values to display whole numbers

开发者 https://www.devze.com 2022-12-14 02:59 出处:网络
I have a bar graph that displays a maximum value of 4, an integer. But the Y-axis values displayed are 开发者_如何学JAVAfrom 0.0 to 4.0.

I have a bar graph that displays a maximum value of 4, an integer. But the Y-axis values displayed are 开发者_如何学JAVAfrom 0.0 to 4.0.

I want the y-axis to display integer values, not in decimal form.

Can I explicitly do this in the JPGraph library?

Thanks in advance. :D


Set the scale to integer, e.g. $graph->SetScale('textint')

0

精彩评论

暂无评论...
验证码 换一张
取 消