Bar chart - value axis text formatting

I have created a simple histogram of machine fault codes from a bar chart.
The values of the faults are incremented by “1” when a fault occurs.

How can i format the text of the value axis ticks so that it will not display decimal points?
Now the value axis displays “0,00 0,25 0,50 0,75 1,00…” but i want it to display “0 1 2 3 4 5 6…”

1 Like

No, you don’t have control over formatting. You can try turning off value axis auto-range property and set the upper and lower bounds.

1 Like

Is this still not possible for 7.6 version of Ignition?
I am trying to set the number of vertical ticks and it seems that the amount is fixed. I found that if you change the Font size of the Tick Label then you have a fewer ticks, but this is not a very robust solution.


1 Like

I know this is a bit of a work-around, but have you tried hiding the axis by putting a linear scale over it? You have much more control over the tick mark spacing on a linear scale component.

1 Like

Is there a better way to do this in 7.9 now?

1 Like
	from org.jfree.chart.axis import NumberAxis
	plot = chart.getPlot()
	axis = plot.getRangeAxis()