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

RadChart exploded item and item text

1 Answer 64 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Seabus
Top achievements
Rank 1
Seabus asked on 13 Oct 2011, 12:12 AM
Hi Telerik team members and users,

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

http://imageshack.us/f/511/percentageexplodeditem.png/

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 !

Sebastian

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 17 Oct 2011, 07:48 AM
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,
Yavor
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
Seabus
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or