RadChart exploded item and item text

Thread is closed for posting
2 posts, 0 answers
  1. Seabus
    Seabus avatar
    33 posts
    Member since:
    Jun 2011

    Posted 12 Oct 2011 Link to this post

    Hi Telerik team members and users,

    In the chart below one of the items is "exploded".


    However, the issue I have is that the item's text ( the "14%" text   overlaps with / touches the slice )

    How can I fix this issue ?

    By the way your product is awesome !

  2. Yavor
    Yavor avatar
    11 posts

    Posted 17 Oct 2011 Link to this post

    Hi Seabus,

    In this case, in order to adjust the distance for the label, you can alter it, when the item is selected/exploded. This is demonstrated in the code snippet below:

    public void RadChart1_Click(object sender, ChartClickEventArgs args)
            ChartSeriesItem item = args.SeriesItem;
            if (item != null)
                if (!item.Appearance.Exploded)
                    item.Appearance.Exploded = true;
                    item.Label.Appearance.Distance = 7;  

    I hope this gets you started properly.

    All the best,
    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
Back to Top