问题
In the examples provided by JFreechart
, we see that it is possible to display horizontal IntervalMarker
s. I would like to build vertical IntervalMarker
s 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