13

Is there a way to hide a JFreeChart XYSeries yaxis? The yaxis is meaningless on logic analyzer display.

jacknad
  • 13,483
  • 40
  • 124
  • 194

2 Answers2

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
-1

hide horizontal and vertical labels

ValueAxis range = xyPlot.getRangeAxis();

range.setVisible(false);

ValueAxis domain = xyPlot.getDomainAxis();

domain.setVisible(false);

Community
  • 1
  • 1