M
Magnus
Hello!
I've created a JFreeChart chart which has a sinus wave (for testing)
values varying from 3800 to 4200. In this chart I want to set a
crosshair, so I do the following:
XYPlot xyp = chart.getXYPlot();
xyp.setRangeCrosshairVisible(true);
xyp.setRangeCrosshairValue(4000, true);
xyp.setRangeCrosshairLockedOnData(true);
....which I expected to give me a crosshair at value 4000 - instead I
get a crosshair at 3800. I tried disabling
setRangeCrosshairLockedOnData() (not being so sure what it is it
actually does), this caused the crosshair to disappear completely.
Also tried a lot of other values, but with
setRangeCrosshairLockedOnData(true) everything seems to wind up with a
crosshair at 3800. With setRangeCrosshairLockedOnData(false) I get
nothing.
Perhaps the matter is affected by the way I've set the minimum-value
of the range axis?
ValueAxis axis = xyp.getRangeAxis();
axis.setMinimumAxisValue(3500);
axis.setTickMarkInsideLength(0.0f);
I'm using JFreeChart-0.9.8 bundeled with cewolf.
Is there any valuable online help for JFreeChart in addition to the
javadoc?
Thanks in advance for any help!
Magnus
I've created a JFreeChart chart which has a sinus wave (for testing)
values varying from 3800 to 4200. In this chart I want to set a
crosshair, so I do the following:
XYPlot xyp = chart.getXYPlot();
xyp.setRangeCrosshairVisible(true);
xyp.setRangeCrosshairValue(4000, true);
xyp.setRangeCrosshairLockedOnData(true);
....which I expected to give me a crosshair at value 4000 - instead I
get a crosshair at 3800. I tried disabling
setRangeCrosshairLockedOnData() (not being so sure what it is it
actually does), this caused the crosshair to disappear completely.
Also tried a lot of other values, but with
setRangeCrosshairLockedOnData(true) everything seems to wind up with a
crosshair at 3800. With setRangeCrosshairLockedOnData(false) I get
nothing.
Perhaps the matter is affected by the way I've set the minimum-value
of the range axis?
ValueAxis axis = xyp.getRangeAxis();
axis.setMinimumAxisValue(3500);
axis.setTickMarkInsideLength(0.0f);
I'm using JFreeChart-0.9.8 bundeled with cewolf.
Is there any valuable online help for JFreeChart in addition to the
javadoc?
Thanks in advance for any help!
Magnus