Hi All,
Wd like to know if there is a way I can superpose a colored line (probably for benchmarking purposes) on the graph. Or has anybody used any other technique for comparsion against a standard , e.g. shading, coloring, etc.
Any help wd be greatly appreciated.
Cheers,
saby.
shift the X Axis
Re: shift the X Axis
Hi Saby,
In the CategoryPlot class there is a method addRangeMarker(...). This lets you add one or more markers (usually represented as lines) to a plot.
For the XYPlot class, there are methods:
addHorizontalLine(...)
addVerticalLine(...)
I plan to change these methods (sometime) to addDomainMarker(...) and addRangeMarker(...) to make them consistent with the CategoryPlot class.
One other option (only implemented for the HorizontalNumberAxis at present) is to add a band to the axis that displays various ranges in different colors. Take a look at the setMarkerBand(...) method in the HorizontalNumberAxis class, and also the HorizontalBarChartDemo class for an example of this.
Regards,
DG.
In the CategoryPlot class there is a method addRangeMarker(...). This lets you add one or more markers (usually represented as lines) to a plot.
For the XYPlot class, there are methods:
addHorizontalLine(...)
addVerticalLine(...)
I plan to change these methods (sometime) to addDomainMarker(...) and addRangeMarker(...) to make them consistent with the CategoryPlot class.
One other option (only implemented for the HorizontalNumberAxis at present) is to add a band to the axis that displays various ranges in different colors. Take a look at the setMarkerBand(...) method in the HorizontalNumberAxis class, and also the HorizontalBarChartDemo class for an example of this.
Regards,
DG.