Stackedbar chart problem

Thread is closed for posting
2 posts, 0 answers
  1. Ravindra
    Ravindra avatar
    1 posts
    Member since:
    Mar 2013

    Posted 25 Mar 2013 Link to this post


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

    Please help me.
  2. Missing user
    Missing user avatar

    Posted 28 Mar 2013 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top