Hi,
I am customizing bar charts and I meet some problems with customizing the axis :
- for a horizontal bar chart, I would like to place the value axis at the bottom of the chart and not at its top,
- for a bar chart, I am looking for solutions in order to place the label of the value axis at the top of the axis, not at its left,
- and finally for a bar chart, I would like to add a line at the extreme right of the chart.
I succeeded to solve all the other problems but theses last ones cause difficulties.
Thanks.
Bar charts : customizing axis
I figured out the answer fro my first question :
To put the range axis at the bottom of the graph, you have to add these lines :
To put the range axis at the bottom of the graph, you have to add these lines :
Code: Select all
CategoryPlot categoryPlot=chart.getCategoryPlot();
categoryPlot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_RIGHT);