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

RadHtmlChart legend colors issue

1 Answer 68 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 26 Aug 2020, 10:17 AM | edited on 02 Aug 2022, 02:12 PM

Hello,

 

I've got a RadHtmlChart where I am creating my ScatterSeries in the code and setting the colors for every series ( scatterSeries.MarkersAppearance.BorderColor) depending on values coming from the database. This is working fine and my  scatter point colors are as I want them (red and green in my case), but my legend just always shows red and blue, no matter what. I expected to legend to just automatically pick up the colors I set for my chart. What can I do to fix this please?

Thanks

 

 

Sean
Top achievements
Rank 1
commented on 26 Aug 2020, 10:42 AM | edited

Attaching a screenshot as well to make it more obvious.

1 Answer, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 1
answered on 26 Aug 2020, 01:16 PM
I've managed to fix this issue. ScatterSeriesIn.Appearance.FillStyle.BackgroundColor  needed to be set to a color.
Tags
Chart (HTML5)
Asked by
Sean
Top achievements
Rank 1
Answers by
Sean
Top achievements
Rank 1
Share this question
or