Time series chart horizontal gridlines through min/max peaks

有些话、适合烂在心里 提交于 2019-12-02 11:08:17

Have you considered using a Marker to highlight the min and max values?

As trashgod sugested you use the Dataset to get the minimum and maximum values and then add a Marker to the Plot

Range range = dataset.getRangeBounds(true);
plot.addRangeMarker(new ValueMarker(range.getLowerBound(),Color.GREEN,new BasicStroke(2.0f)),Layer.BACKGROUND);
plot.addRangeMarker(new ValueMarker(range.getUpperBound(),Color.BLUE,new BasicStroke(2.0f)),Layer.BACKGROUND);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!