I have tried setting ticks marks visible on the domain axis for Different types of Vertical Bar charts.
(Cluster Bars, Stacked Bars, Standard Vertical)
Yet unfortunatly the the tick marks don't seem to appear.
Is there any straightforward way I can implement this feature for those graph types?
Domain Axis Tick Marks
Re: Domain Axis Tick Marks
Hi Iain,
You'll need to add something into the draw(...) method of the HorizontalCategoryAxis class (and something similar for VerticalCategoryAxis), since ticks have never been available for category axes. There should probably be an option to draw the ticks in the middle of the category OR between the categories.
Regards,
DG.
You'll need to add something into the draw(...) method of the HorizontalCategoryAxis class (and something similar for VerticalCategoryAxis), since ticks have never been available for category axes. There should probably be an option to draw the ticks in the middle of the category OR between the categories.
Regards,
DG.
Re: Domain Axis Tick Marks
Yeah I couldn't see a method that would tell me the Y and X axis positions for the middle of the category.
Tick give me and X and Y but that was for the start of the text to be displayed - I couldn't work it out from there?
Tick give me and X and Y but that was for the start of the text to be displayed - I couldn't work it out from there?
Re: Domain Axis Tick Marks
For some reason I can't think of now I originally gave the CategoryPlot class responsibility for positioning categories...so you can get the center of the category using the getCategoryCoordinate(...) method. It will be an x-value for VerticalCategoryPlot and a y-value for HorizontalCategoryPlot.
The other coordinate you can get from the plotArea in the draw(...) method of the CategoryAxis classes...it is the area defined by the axes, so the edge of this area is where you need to draw the ticks.
Regards,
DG.
The other coordinate you can get from the plotArea in the draw(...) method of the CategoryAxis classes...it is the area defined by the axes, so the edge of this area is where you need to draw the ticks.
Regards,
DG.