I'm hoping that someone can help me. I have a Pie chart which looks great! only problem is, if I choose the value as the label, Both the legend and the labels on the pie pieces show the same value. If I show the item names as labels, same thing. It seems the legend can only reference the pie series items labels. I need some way for the legend to show the pie series items values while the label on the pie pieces show the item name, or vice-versa, I'm not overly picky on the direction. This is my codebehind now:
protected void FormatChart2()
{
RadChart2.Skin = "Vista";
RadChart2.IntelligentLabelsEnabled = true;
RadChart2.Legend.Visible = true;
RadChart2.Series.Clear();
ChartSeries series = new ChartSeries();
series.DataYColumn = "EventCount";
//series.DataXColumn = "EventTypes";
series.Name = "Incidents Entered";
series.DefaultLabelValue = "#%";
series.DataLabelsColumn = "EventTypes";
series.Appearance.ShowLabels = true;
series.Appearance.ShowLabelConnectors = true;
series.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
series.Type = ChartSeriesType.Pie;
RadChart2.Series.Add(series);
RadChart2.Appearance.ImageQuality = Telerik.Charting.Styles.ImageQuality.AntiAlias;
RadChart2.ChartTitle.TextBlock.Text = "Incidents By Type for " + txtMonth.Text + "/" + txtYear.Text;
}
How can I set it so the legend shows 'EventTypes' while thet pie pieces show 'EventCount' or vice-versa. Any help would be greatly appreciated. Thanks!
protected void FormatChart2()
{
RadChart2.Skin = "Vista";
RadChart2.IntelligentLabelsEnabled = true;
RadChart2.Legend.Visible = true;
RadChart2.Series.Clear();
ChartSeries series = new ChartSeries();
series.DataYColumn = "EventCount";
//series.DataXColumn = "EventTypes";
series.Name = "Incidents Entered";
series.DefaultLabelValue = "#%";
series.DataLabelsColumn = "EventTypes";
series.Appearance.ShowLabels = true;
series.Appearance.ShowLabelConnectors = true;
series.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
series.Type = ChartSeriesType.Pie;
RadChart2.Series.Add(series);
RadChart2.Appearance.ImageQuality = Telerik.Charting.Styles.ImageQuality.AntiAlias;
RadChart2.ChartTitle.TextBlock.Text = "Incidents By Type for " + txtMonth.Text + "/" + txtYear.Text;
}
How can I set it so the legend shows 'EventTypes' while thet pie pieces show 'EventCount' or vice-versa. Any help would be greatly appreciated. Thanks!