Hi,
I made a custom theme based on this documentation Creating a Custom Theme, Everything works fine, except the series are the same color.
I know I can change the color of the series through code, I was wondering if there is a way to have SciChart automatically set different colors instead of just using the color from the custom theme.
Thanks!
- anders chen asked 4 weeks ago
- last edited 4 weeks ago
- You must login to post comments
Hi Lex,
Thank you for your reply.
I noticed the code example in the documentation, but there is only one LineSeriesColor.
What I want is that I provide an array of colors , then SciChart uses the colors in the array to set the color of the lines, e.g. I provide the colors [‘red’, ‘blue’, ‘green’, ‘yellow’], if I draw two lines, then the colors of the lines are red and blue; if I draw three lines, then the colors of the lines are red, blue and green.
Best regards,
Anders
- anders chen answered 1 week ago
- last edited 1 week ago
- You must login to post comments
Hi Anders,
Thanks for the clarification.
Unfortunately, it’s not possible to achieve this by creating a custom theme. For the theme, you can only add the default color, which would obviously be the single one for the Series type.
If you wish to set each Series a different color, this can only be done by setting the color explicitly for the RenderableSeries.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 1 week ago
- last edited 1 week ago
- You must login to post comments
Hi Anders,
Thanks for your question.
One of the parts of a Custom Theme creation for Scichart is defining the custom Theme ResourceDictionary.
Please see the “Default Series Colors” section of the “Defining your own Theme ResourceDictionary” code sample in the following documentation article for more details:
SciChart WPF Documentation – Creating a Custom Theme _ WPF Chart Documentation
Alternatively, as you’ve mentioned, you can change the Stroke color for each RenderableSeries individually.
Kind regards,
Lex,
SciChart Technical Support Engineer
- Lex answered 3 weeks ago
- last edited 3 weeks ago
- You must login to post comments
Please login first to submit.