Display all bars with equal width in x axis using XYBarchart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
lupacexi
Posts: 1
Joined: Fri Jul 21, 2017 1:35 pm
antibot: No, of course not.

Display all bars with equal width in x axis using XYBarchart

Post by lupacexi » Fri Jul 21, 2017 1:39 pm

Hi,

I am working on XY bar chart which displays as shown below,
Image

In this example graph starts from -100 and first bar width is -100 to 10.

I want display all the bars with same width irrespective of the tick width as shown below,
Image

Please provide any ideas how can i adjust range of x axis to make all bars with same width

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Display all bars with equal width in x axis using XYBarc

Post by paradoxoff » Sat Jul 22, 2017 4:48 pm

The axis in your first image does not look like a normal ValueAxis. How have you generated that chart?
And I do not understand your question. The second image already shows a chart that looks like you want, you you have either created the second image with a paint program, or you have already solved your problem. Unfortunately, the image has a too low quality to clarify where it may have come from.

Locked