开发者

How to hide JFreeChart XYSeries yaxis?

开发者 https://www.devze.com 2023-01-21 00:58 出处:网络
Is there a way to hide a JFreeChart XYSeries yaxis? The yaxis is mean开发者_开发百科ingless on logic analyzer display.You can use setVisible(), as shown below.

Is there a way to hide a JFreeChart XYSeries yaxis? The yaxis is mean开发者_开发百科ingless on logic analyzer display.


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);

0

精彩评论

暂无评论...
验证码 换一张
取 消