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

Get color of the selected slice (datapoint)

1 Answer 35 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jannik
Top achievements
Rank 1
Jannik asked on 11 May 2018, 07:02 PM

I am sorry for opening a second thread, but I have another question:

- I have a PieChart where I can select a specific slide.

- I have another control, the RadCartesianChart

 

Whenever I select a slide on the pie chart, I would like to add a lineseries on the RadCartesianChart. That works fine.

But now I would like to color the line with the same color from the slide I selected.

I am using the standard palette. Instead of using the palette, can I specify each slices color in my model I bound to the property ItemsSource of my PieSeries?

Or do you have any other idea, how to get that color?

 

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Jannik
Top achievements
Rank 1
answered on 16 May 2018, 11:30 AM

To be a bit more specific:

I would like to make 4 specific slices of the 8 slices, I have blue colored, and the rest of the slices red. Which slice gets which color depends on the category the data behind those slices has.

Tags
Chart
Asked by
Jannik
Top achievements
Rank 1
Answers by
Jannik
Top achievements
Rank 1
Share this question
or