hi there!
does anyone know, how to tell a timerseries-chart
to use integers on the y-axis only?
I appreciate every help!
wolfgang
only integers in y-axis?
Re: only integers in y-axis?
hi again,
just found that stuff.
I post it, maybe somebody else has the same problem:
VerticalNumberAxis range = new VerticalNumberAxis() ;
range.setStandardTickUnits(TickUnits.createIntegerTickUnits()) ;
chart.getXYPlot().setRangeAxis(range) ;
wolfgang
just found that stuff.
I post it, maybe somebody else has the same problem:
VerticalNumberAxis range = new VerticalNumberAxis() ;
range.setStandardTickUnits(TickUnits.createIntegerTickUnits()) ;
chart.getXYPlot().setRangeAxis(range) ;
wolfgang
Re: only integers in y-axis?
NumberAxis tempAxis=(NumberAxis)range;
tempAxis.setStandardTickUnits(TickUnits.createIntegerTickUnits());
try that.
tempAxis.setStandardTickUnits(TickUnits.createIntegerTickUnits());
try that.