Width of bar for XY Bar Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sandrider
Posts: 9
Joined: Thu Apr 27, 2006 6:40 am

Width of bar for XY Bar Chart

Post by sandrider » Wed Jul 05, 2006 5:16 am

Hi,

Is there a way for me to 'force' the width of an XY Bar Chart.

The lines of the plot like like lines when it is drawn but when I zoom in, it becomes bars. Can I force it to be lines and not bars?

Thanks.

Desmond

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 Jul 05, 2006 1:29 pm

The bar widths are determined by the startX and endX values returned by the dataset. But you could create a custom renderer that just draws a line for each value, if that's what you want.
David Gilbert
JFreeChart Project Leader

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

Locked