I'm working on a pie chart that is close to working as expected - just not quite. My problems revolve around the labels - something that a lot of people seem to struggle with. In my case, it's the connectors.
I have three images attached, showing the same data with a few different settings for the pie:
DefaultPie is basically what i want to see, and i haven't tweaked the rotations or scales very much. Note how the connectors are overlapping at the top. Why are some of the labels being placed out of order? This would be totally fine, provided that the top five items weren't in a bizarre order.
The other two images are the same data with rotations and scales applied to try to improve the display. To no avail. In all cases, the connectors end up crossing. In the best case scenario, i might have one bizarrely placed label, and in the worst case, there might be five or six of them placed willy nilly.
What might i do here to fix this?
Here's the code i'm using for my chart (minus the individual series items, which i'm not making any appearance changes to):
I have three images attached, showing the same data with a few different settings for the pie:
DefaultPie is basically what i want to see, and i haven't tweaked the rotations or scales very much. Note how the connectors are overlapping at the top. Why are some of the labels being placed out of order? This would be totally fine, provided that the top five items weren't in a bizarre order.
The other two images are the same data with rotations and scales applied to try to improve the display. To no avail. In all cases, the connectors end up crossing. In the best case scenario, i might have one bizarrely placed label, and in the worst case, there might be five or six of them placed willy nilly.
What might i do here to fix this?
Here's the code i'm using for my chart (minus the individual series items, which i'm not making any appearance changes to):
this
.Chart.DefaultType = ChartSeriesType.Pie;
this
.Chart.IntelligentLabelsEnabled =
true
;
this
.Chart.ChartTitle.Visible =
false
;
this
.Chart.Legend.Visible =
false
;
this
.Chart.PlotArea.Appearance.Dimensions.Margins =
new
Telerik.Charting.Styles.ChartMargins(0, 0, 0, 0);
ChartSeries seriesPrimary =
new
ChartSeries();
seriesPrimary.Type = ChartSeriesType.Pie;
seriesPrimary.Appearance.ShowLabelConnectors =
true
;
seriesPrimary.Appearance.LabelAppearance.LabelConnectorStyle.Color = System.Drawing.Color.White;
this
.Chart.Series.Add(seriesPrimary);