ISeriesDefinition sd;
InteractivitySettings inter = new InteractivitySettings()
{
HoverScope = InteractivityScope.Item,
SelectionMode = ChartSelectionMode.Single,
SelectionScope = InteractivityScope.Item
};
sd = new PieSeriesDefinition()
{
LabelSettings = new RadialLabelSettings()
{
SpiderModeEnabled = true,
ShowConnectors = true
}
};
sd.ShowItemLabels = true;
sd.LegendDisplayMode = LegendDisplayMode.DataPointLabel;
sd.SeriesItemLabelStyle = this.Resources["SeriesItemLabelStyle"] as Style;
this.RadChart2.DefaultSeriesDefinition = sd;
this.RadChart2.DefaultView.ChartLegend.Header = "";
this.RadChart2.DefaultView.ChartArea.SmartLabelsEnabled = true;
this.RadChart2.DefaultView.ChartArea.Extensions.Add(new CameraExtension());
this.RadChart2.DefaultView.ChartLegendPosition = Telerik.Windows.Controls.Dock.Bottom;
this.RadChart2.ItemsSource = Convert2ChartItemssource();
}
and the
SeriesItemLabelStyle :