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

Stackedbar chart problem

1 Answer 30 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ravindra
Top achievements
Rank 1
Ravindra asked on 25 Mar 2013, 09:34 AM
Hi,

I am binding the values and generating the chart dynamically. But the values are not aligned properly.

Please help me.

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 28 Mar 2013, 08:34 AM
Hello Ravindra,

This behavior is caused by the IntelligentLabels feature of RadChart which is turned off by default. In your chart, they are turned on, which is advisable, since otherwise the labels would overlap and won't be readable.

If you are concerned that your users will be confused by this misalignment, you can still make it clear to which series a label corresponds. You just have to modify each series' appearance to use a custom fill style and copy it over to the fill style of the text. You can also specify border, e.g.:
this.radChart.Series[0].Appearance.FillStyle.MainColor = Color.Red;
this.radChart.Series[0].Appearance.FillStyle.SecondColor = Color.Red;
this.radChart.Series[0].Appearance.TextAppearance.Border.Color = Color.Black;
this.radChart.Series[0].Appearance.TextAppearance.FillStyle.MainColor = Color.Red;
this.radChart.Series[0].Appearance.TextAppearance.FillStyle.SecondColor = Color.Red;

All the best,
Ivan N.
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Ravindra
Top achievements
Rank 1
Answers by
Missing User
Share this question
or