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

RadChart Pie Overlapping issue

1 Answer 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Fransiscus
Top achievements
Rank 1
Fransiscus asked on 02 Jun 2011, 03:12 PM
Hi Is there any solution to avoid 2 series on piechart overlapped each other?I also attached screenshot for better understanding

Binding code
private void RebindChartPieReport(RadChart radChart, bool enabledSpider)
       {
           radChart.SeriesMappings.Clear();
 
           PieSeriesDefinition pieSeriesDefinition = new PieSeriesDefinition();
 
           if (enabledSpider)
           {
               RadialLabelSettings radialSettings = new RadialLabelSettings();
               radialSettings.SpiderModeEnabled = true;
               radialSettings.ShowConnectors = true;
               pieSeriesDefinition.LabelSettings = radialSettings;
           }
 
           radChart.DefaultSeriesDefinition = pieSeriesDefinition;
 
           SeriesMapping seriesMapping = new SeriesMapping();
           seriesMapping.ItemMappings.Add(new ItemMapping("XYValue", DataPointMember.YValue));
           seriesMapping.ItemMappings.Add(new ItemMapping("YAxisLegendName", DataPointMember.LegendLabel));
           radChart.SeriesMappings.Add(seriesMapping);
       }
 
void diagnosticServicesClient_GetResolutionDetailsCompleted(object sender, GetResolutionDetailsCompletedEventArgs e)
       {
           if (TabStaffDashboard.IsSelected)
           {
               RebindChartPieReport(radPieChart, true);
               radPieChart.ItemsSource = e.Result;
           }
           else
           {
               RebindChartPieReport(radPieChartTime, false);
               radPieChartTime.ItemsSource = e.Result;
           }
 
       }

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 06 Jun 2011, 12:57 PM
Hello Fransiscus,

It seems (from the picture you attached) that Completed and Incomplete Slices have both 0 values and on the other hand the Not Started has value 1. The slices do not overlap but since the 0s are too small - looks like a single line - that is the expected way the Pie should show the data.
If you want you can use the Distance property when in SpiderMode or LabelOffset property when the SpiderMode is turned off so that you can control the distance of the Labels - for better readability. This is shown in our demo with source code.

Greetings,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Fransiscus
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or