Keeping Bars Together

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mjacobsca
Posts: 16
Joined: Thu Aug 21, 2003 4:59 pm

Keeping Bars Together

Post by mjacobsca » Wed Jan 21, 2004 9:49 pm

Is there a way to keep bars aligned to the left side of the chart rather than evenly spacing them out over the entire chart? If there is only a bar or two, I like them to be close together rather than symetrically spaced in the chart.

Michael

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

Post by david.gilbert » Wed Jan 21, 2004 11:20 pm

You will need a custom axis to do that (plus you'll need to look closely at the communication between the BarRenderer class and the axis - hopefully there is a clean separation between them, but I forget the details).
David Gilbert
JFreeChart Project Leader

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

Locked