6 Answers, 1 is accepted
0
Hi Berry,
In order to achieve the desired effect you can use the SmartLabels feature of the chartview suite. You can find an example on how to use the smart labels strategy in the Pie Smart Labels demo.
Regards,
Martin
Telerik
In order to achieve the desired effect you can use the SmartLabels feature of the chartview suite. You can find an example on how to use the smart labels strategy in the Pie Smart Labels demo.
Regards,
Martin
Telerik
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 Feedback Portal
and vote to affect the priority of the items
0
berry
Top achievements
Rank 1
answered on 28 Jul 2015, 09:27 AM
Please see the attach project file.
Although i added:
<telerik:PieChartSmartLabelsStrategy
DisplayMode=
"SpiderAlignedOutwards"
/>
http://docs.telerik.com/devtools/wpf/controls/radchartview/features/labels/smart-labels​
0
berry
Top achievements
Rank 1
answered on 28 Jul 2015, 09:30 AM
The file is here: http://www.filedropper.com/newfolder_16
0
Hi Berry,
In order to display the connectors of the labels you will need to set also the LabelConnectorsSettings property of the series.
Regards,
Martin
Telerik
In order to display the connectors of the labels you will need to set also the LabelConnectorsSettings property of the series.
<
telerik:DoughnutSeries.LabelConnectorsSettings
>
<
telerik:ChartSeriesLabelConnectorsSettings
/>
</
telerik:DoughnutSeries.LabelConnectorsSettings
>
Regards,
Martin
Telerik
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 Feedback Portal
and vote to affect the priority of the items
0
berry
Top achievements
Rank 1
answered on 28 Jul 2015, 12:54 PM
I probably missing something cause still nothing.
See my code:
<telerik:RadPieChart
VerticalAlignment=
"Center"
Name=
"pieChart"
Palette=
"Windows8"
Foreground=
"White"
FontSize=
"16"
HoverMode=
"FadeOtherItems"
Margin=
"201,44,52,137"
Height=
"503"
Grid.ColumnSpan=
"2"
>
<telerik:RadPieChart.SmartLabelsStrategy>
<telerik:PieChartSmartLabelsStrategy
DisplayMode=
"SpiderUnaligned"
/>
</telerik:RadPieChart.SmartLabelsStrategy>
<telerik:RadPieChart.Series>
<telerik:PieSeries ItemsSource=
"{Binding PieData}"
ShowLabels=
"True"
>
<telerik:PieSeries.AngleRange>
<telerik:AngleRange StartAngle=
"270"
SweepAngle=
"360"
/>
</telerik:PieSeries.AngleRange>
<telerik:PieSeries.LegendSettings>
<telerik:DataPointLegendSettings/>
</telerik:PieSeries.LegendSettings>
</telerik:PieSeries>
<telerik:DoughnutSeries>
<telerik:DoughnutSeries.LabelConnectorsSettings>
<telerik:ChartSeriesLabelConnectorsSettings />
</telerik:DoughnutSeries.LabelConnectorsSettings>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>
<telerik:RadLegend
x:Name=
"pieLegend"
Foreground=
"White"
MouseRightButtonDown=
"PieLegend_MouseRightButtonDown"
Items=
"{Binding LegendItems, ElementName=pieChart}"
Margin=
"549,44,10,344"
RenderTransformOrigin=
"0.5,0.5"
Grid.Column=
"1"
/>
0
Hello Berry,
In order to for the connectors to be displayed you will need to define their settings in a series that is populated with items and plotted on the chart. In your case the label connectors settings should be defined in the PieSeries.
Regards,
Martin
Telerik
In order to for the connectors to be displayed you will need to define their settings in a series that is populated with items and plotted on the chart. In your case the label connectors settings should be defined in the PieSeries.
<
telerik:RadPieChart
VerticalAlignment
=
"Center"
Name
=
"pieChart"
Palette
=
"Windows8"
Foreground
=
"White"
FontSize
=
"16"
HoverMode
=
"FadeOtherItems"
Margin
=
"201,44,52,137"
Height
=
"503"
Grid.ColumnSpan
=
"2"
>
<
telerik:RadPieChart.SmartLabelsStrategy
>
<
telerik:PieChartSmartLabelsStrategy
DisplayMode
=
"SpiderUnaligned"
/>
</
telerik:RadPieChart.SmartLabelsStrategy
>
<
telerik:RadPieChart.Series
>
<
telerik:PieSeries
ItemsSource
=
"{Binding PieData}"
ShowLabels
=
"True"
>
<
telerik:PieSeries.AngleRange
>
<
telerik:AngleRange
StartAngle
=
"270"
SweepAngle
=
"360"
/>
</
telerik:PieSeries.AngleRange
>
<
telerik:PieSeries.LegendSettings
>
<
telerik:DataPointLegendSettings
/>
</
telerik:PieSeries.LegendSettings
>
<
telerik:PieSeries.LabelConnectorsSettings
>
<
telerik:ChartSeriesLabelConnectorsSettings
/>
</
telerik:PieSeries.LabelConnectorsSettings
>
</
telerik:PieSeries
>
</
telerik:RadPieChart.Series
>
</
telerik:RadPieChart
>
<
telerik:RadLegend
x:Name
=
"pieLegend"
Foreground
=
"White"
MouseRightButtonDown
=
"PieLegend_MouseRightButtonDown"
Items
=
"{Binding LegendItems, ElementName=pieChart}"
Margin
=
"549,44,10,344"
RenderTransformOrigin
=
"0.5,0.5"
Grid.Column
=
"1"
/>
Regards,
Martin
Telerik
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 Feedback Portal
and vote to affect the priority of the items