Newbie - two quick questions

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dmacleod
Posts: 8
Joined: Fri Jun 29, 2007 4:48 pm
Location: Florida, USA

Newbie - two quick questions

Post by dmacleod » Fri Jun 29, 2007 4:52 pm

Is there a way to bring the Range gridlines to the front of a bar chart? Also, is there a way to put the Range Axis Label on the right side of a bar chart?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Newbie - two quick questions

Post by david.gilbert » Fri Jun 29, 2007 4:55 pm

dmacleod wrote:Is there a way to bring the Range gridlines to the front of a bar chart?
No. Unless you want to modify the source code in the plot to do the gridline drawing last.
dmacleod wrote:Is there a way to bring the Range gridlines to the front of a bar chart? Also, is there a way to put the Range Axis Label on the right side of a bar chart?
Yes:

Code: Select all

XYPlot plot = (XYPlot) chart.getPlot();
plot.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked