How to hide JFreeChart XYSeries yaxis?
Asked Answered
O

2

13

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

Organelle answered 19/10, 2010 at 22:5 Comment(0)
P
27

You can use setVisible(), as shown below.

XYPlot plot = (XYPlot) chart.getPlot();
ValueAxis range = plot.getRangeAxis();
range.setVisible(false);
Poliomyelitis answered 20/10, 2010 at 0:32 Comment(0)
S
-1

hide horizontal and vertical labels

ValueAxis range = xyPlot.getRangeAxis();

range.setVisible(false);

ValueAxis domain = xyPlot.getDomainAxis();

domain.setVisible(false);

Subdued answered 11/2, 2014 at 13:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.