Hi,
How can we control smar labels connector length i.e ChartSeriesLabelConnectorsSettings class does not give any control to connector length. I am looking for some logic so that we can control the connector length.
Thankyou,
~Sri
7 Answers, 1 is accepted
Have you tried using the MinLengthThreshold. It gets or sets the min length threshold. If a label connector is shorter than this threshold, the label connector is not drawn.
Hope this helps.
Regards,
Peshito
Telerik
In that case you could try using the Margin property of the ChartSeriesLabelDefinition. If this is not suitable enough another approach would be to use your own labels' Strategy. Please see our Pie Smart Labels demo sample for more information.
Regards,
Peshito
Telerik
I am not sure what your trying to tell with ChartSeriesLabelDefinition margin property.I tried negative margin but its not working.
Can you please give me sample example showing how can customize label connector length with label Strategy?
We have been issue with it since long time.Its really need for us.
The sample code below produces a pie series chart with label connectors. The Margin property of the ChartSeriesLabelDefinition is with "-10,0,0,0" value so the connector is 10 pixels long.
<telerik:RadPieChart Palette="Windows8"> <telerik:PieSeries ShowLabels="True" RadiusFactor="0.6"> <telerik:PieSeries.DataPoints> <telerik:PieDataPoint Value="43.46" Label="France: 43.46%"/> <telerik:PieDataPoint Value="27.53" Label="Germany: 27.53%" /> <telerik:PieDataPoint Value="15.11" Label="Belgium: 15.11%" /> <telerik:PieDataPoint Value="10.35" Label="Holland: 10.35%" /> <telerik:PieDataPoint Value="3.55" Label="Luxembourg: 3.55%" /> </telerik:PieSeries.DataPoints> <telerik:PieSeries.LabelDefinitions> <telerik:ChartSeriesLabelDefinition Margin="-10,0,0,0" /> </telerik:PieSeries.LabelDefinitions> <telerik:PieSeries.LabelConnectorsSettings> <telerik:ChartSeriesLabelConnectorsSettings /> </telerik:PieSeries.LabelConnectorsSettings> </telerik:PieSeries> </telerik:RadPieChartRegards,
Peshito
Telerik by Progress
But its not same RadCartesianChart ScatterPointSeries .
We tried MinLengthThreshold but we need MaxLengthThreshold i.e we dont want our connector to be drawn after certain length.
Lets say max length of connector is 5.
