This is a migrated thread and some comments may be shown as answers.

Grouped Bar Chart - X axis label center alignment issue

1 Answer 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sankar
Top achievements
Rank 1
Sankar asked on 04 Jun 2013, 07:06 AM
Hi,

When we tried to create a grouped bar chart against two different region (WEST, EAST) across defined months (01-Jan to 01-Jun), Grouped Bar chart is rendered correctly including X axis labels center aligned - Please refer the attached image - All_Data_Bar.png.

But we encountered the X axis label alignment problem (it's not in center against the bar) only if some of the months data is not available for one particular region (EAST) - Please refer the attached image - Grouped_Bar_Label_Center_Issue.png . Our customer is expecting that X axis label against the bar should be center aligned always.

Sometimes based on the data, we are getting the empty space between the bars against the group.- Please refer the attached image- Grouped_Bar_Space_Issue.png

Please advise how to resolve this issue? If you can provide code sample to acheive the desired result would be grateful.

Thanks
Sankar

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 07 Jun 2013, 05:14 PM
Hello Sankar,

This behavior is by default and is caused due to the fact that there is missing data for the respective category. Hiding the gaps and centering the bars will not be possible since the empty values have to go somewhere.

Other than that you should know that the Chart item is now obsolete and will no longer be developed. Therefore we strongly recommend you on using the new Graph item, which is much more powerful and flexible and offers many things that the old Chart did not have, such as expressions, conditional formatting, etc.

Regards,
IvanY
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Sankar
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or