JFreeChart - IntervalMarker vertical?

走远了吗. 提交于 2019-12-24 11:07:09

问题


In the examples provided by JFreechart, we see that it is possible to display horizontal IntervalMarkers. I would like to build vertical IntervalMarkers and I do not find the way to do that using this example.


回答1:


In Cartesian coordinates , the domain is orthogonal to the range, so

final IntervalMarker target = new IntervalMarker(10.0, 20.0);
target.setLabel("Target Domain");
...
plot.addDomainMarker(target, Layer.BACKGROUND);


来源:https://stackoverflow.com/questions/5964674/jfreechart-intervalmarker-vertical

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!