Please my PieChart in the attach file.
This is my collection:
Dictionary<
string
,
double
> seriesSource =
new
Dictionary<
string
,
double
>();
this
.doughnutSries.ValueBinding =
new
GenericDataPointBinding<KeyValuePair<
string
,
double
>,
double
>()
{
ValueSelector = x => x.Value
};
this
.doughnutSries.ItemsSource = seriesSource;
this
.doughnutSries.Loaded += doughnutSries_Loaded;
void
doughnutSries_Loaded(
object
sender, RoutedEventArgs e)
{
if
(
this
.doughnutSries.DataPoints.Count > 0)
{
this
.doughnutSries.DataPoints[0].IsSelected =
true
;
}
}
XAML:
<telerik:RadPieChart Palette=
"Windows8"
>
<telerik:RadPieChart.Behaviors>
<telerik:ChartSelectionBehavior />
<telerik:ChartTooltipBehavior />
</telerik:RadPieChart.Behaviors>
<telerik:DoughnutSeries x:Name=
"doughnutSries"
InnerRadiusFactor=
"0.25"
SelectedPointOffset=
"0.07"
>
<telerik:DoughnutSeries.TooltipTemplate>
<DataTemplate>
<Border Background=
"#B1E154"
CornerRadius=
"3"
TextElement.Foreground=
"#FFFFFF"
Padding=
"5"
>
<StackPanel>
<TextBlock>
<TextBlock Text=
"IP Address: "
/>
<TextBlock Text=
"{Binding DataItem.Key}"
/>
</TextBlock>
<TextBlock>
<TextBlock Text=
"Value: "
/>
<TextBlock Text=
"{Binding Value}"
/>
</TextBlock>
</StackPanel>
</Border>
</DataTemplate>
</telerik:DoughnutSeries.TooltipTemplate>
</telerik:DoughnutSeries>
</telerik:RadPieChart>
So i want to add:
1. Legend that will show me the IP Address and when mouse over i want also to highlight the pie section:
Please see this: http://docs.telerik.com/devtools/wpf/controls/radchart/features/chart-legend
2 I want to be able to copy the IP Address with mouse right click.