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

Getting a Slice of the Pie.

1 Answer 77 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 17 Jan 2013, 10:03 PM
I have a Pie Chart that is bound to a stored procedure, the stored procedure brings back the percentage of sales for each sales person in my database.  As the user select  diffrent sales people I would like to be able to highlite or pull the wedge out that represents that sales person.  I have the salesperson code, but right now its not bound and I know which sales person they are looking at.

<telerik:RadPieChart HorizontalAlignment="Left" Margin="31,32,0,0" VerticalAlignment="Top">
<telerik:PieSeries x:Name="TotalSalePercent" ShowLabels="True"
ItemsSource="{Binding}"
ValueBinding="__of_Total_Sales">
</telerik:PieSeries>
</telerik:RadPieChart>


List<spSalesPercentResult> spSalesPercentresult = (from s in conn.spSalesPercent()
select s).ToList();
            TotalSalePercent.ItemsSource = spSalesPercentresult;


1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 22 Jan 2013, 07:54 AM
Hi Stephan,

 From what you've written I'm assuming that you need a hover(highlight) and selection interaction with each of your Pie slices. Please take a look at this online demo with source code provided where this is shown. You might also find this help topic useful (the code samples are for Scatter series) but the main properties of the ChartSelectionBehaviour are the same for all kind of series.

Kind regards,
Evgenia
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Stephan
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or