This is a migrated thread and some comments may be shown as answers.

PieSeries OffsetFromCenter not being reapplied after Selection

1 Answer 58 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Manthravadi
Top achievements
Rank 2
Manthravadi asked on 04 Mar 2013, 05:12 AM
I've observed that when a Slice is selected and deselected again in the PieSeries, then the Offset which is set in the <PieDataPoint/> tag is not being applied anymore and the slice/piedatapoint loses the offset that was set initially. Is this a bug or am I doing it wrong?

[code]
<telerik:RadPieChart>
<telerik:PieSeries ShowLabels="False" SelectedPointOffset="0.03">
<telerik:PieSeries.DataPoints>
<telerik:PieDataPoint Value="27" OffsetFromCenter="0.02"/>
<telerik:PieDataPoint Value="33" OffsetFromCenter="0.02"/>
<telerik:PieDataPoint Value="40" OffsetFromCenter="0.02"/>
<!--<telerik:PieDataPoint Value="33" OffsetFromCenter="0.02"/>-->
</telerik:PieSeries.DataPoints>
<telerik:PieSeries.AngleRange>
            <telerik:AngleRange StartAngle="270" SweepAngle="360" />
            </telerik:PieSeries.AngleRange>
</telerik:PieSeries>
<telerik:RadPieChart.Behaviors>
<telerik:ChartSelectionBehavior DataPointSelectionMode="Single">
</telerik:ChartSelectionBehavior>
</telerik:RadPieChart.Behaviors>
</telerik:RadPieChart>
[/code]


Also, how does the SelectedPointOffset property work? I don't see the effect of 0.03 offset for the selected slice when I select a slice - the offset is much more than that for the slice which is selected

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Mar 2013, 08:52 AM
Hello,

The reason you do not see any effect when setting SelectedPointOffset is due to a bug, which has already been fixed. The fix is available with our latest LIB, released on March 4th, which you can download from your account.

When using SelectionBehavior, we would recommend setting the SelectedPointOffset property of the series, instead of an individual data point's OffsetFromCenter, which would only work on initial load, as you've discovered.

All the best,
Nikolay
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Manthravadi
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Share this question
or