Get color of the selected slice (datapoint)

2 posts, 0 answers
  1. Jannik
    Jannik avatar
    7 posts
    Member since:
    May 2016

    Posted 11 May 2018 Link to this post

    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!

  2. Jannik
    Jannik avatar
    7 posts
    Member since:
    May 2016

    Posted 16 May 2018 in reply to Jannik Link to this post

    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.

Back to Top