Is there a way to hide a JFreeChart XYSeries yaxis? The yaxis is meaningless on logic analyzer display.
How to hide JFreeChart XYSeries yaxis?
Asked Answered
You can use setVisible()
, as shown below.
XYPlot plot = (XYPlot) chart.getPlot();
ValueAxis range = plot.getRangeAxis();
range.setVisible(false);
hide horizontal and vertical labels
ValueAxis range = xyPlot.getRangeAxis();
range.setVisible(false);
ValueAxis domain = xyPlot.getDomainAxis();
domain.setVisible(false);
© 2022 - 2024 — McMap. All rights reserved.