Is there a way to hide a JFreeChart XYSeries yaxis? The yaxis is meaningless on logic analyzer display.
Asked
Active
Viewed 9,044 times
2 Answers
26
You can use setVisible()
, as shown below.
XYPlot plot = (XYPlot) chart.getPlot();
ValueAxis range = plot.getRangeAxis();
range.setVisible(false);

trashgod
- 203,806
- 29
- 246
- 1,045
-
5Your're real expert in jFreeChart and your help is very useful! Thanks! – Eugene Shmorgun Jan 21 '13 at 15:38
-1
hide horizontal and vertical labels
ValueAxis range = xyPlot.getRangeAxis();
range.setVisible(false);
ValueAxis domain = xyPlot.getDomainAxis();
domain.setVisible(false);

Community
- 1
- 1