Align category label with bars on bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pmd
Posts: 1
Joined: Thu Feb 15, 2007 10:55 pm

Align category label with bars on bar chart

Post by pmd » Thu Feb 15, 2007 11:01 pm

Hi
I have been trying to create a horizontal bar chart with a fixed set of categories. Could someone help me with these queries.

1)The category labels seem to not align with the bars creating a confusion as to which bar corresponds to which category.

2) is there any way I can manipulate the width of the categories . I tried altering the category/item margins. It only made a small difference.

Any help would be graetly appreciated.

ravish
Posts: 9
Joined: Thu Feb 15, 2007 11:52 am

Exact Same problem

Post by ravish » Fri Feb 16, 2007 1:06 am

I am having exact same problem and haven't found any solutions yet. The problem aggrevates even more when you export graph as SVG. Labels are not exactly below the bars but towards the (your) right hand side of bar usualy in my case. Is this a bug or can it be solved by setting some properties?

ravish
Posts: 9
Joined: Thu Feb 15, 2007 11:52 am

Solution:

Post by ravish » Wed Feb 21, 2007 6:48 pm

Create datasets properly. If you don't want multiple category dont use it when creting datasets.

ultrasparc
Posts: 1
Joined: Tue Jan 29, 2008 9:30 pm

Post by ultrasparc » Tue Jan 29, 2008 9:31 pm

I am experiencing this problem where category labels do not align with the bars. Could someone please provide a snippet how to correct this? Thank you.

Locked