Pre loader

How to highlight DefaultTickLabel in different colors, depending on date time value?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums


I want to highlight every start of hour, day, week in different colors.
I think I need to make style for DefaultTickLabel, using Style.Triggers and DefaultTickLabelViewModel. But I don’t know how to do it.
If DefaultTickLabelViewModel would have a DateTime property then it would be easier. But now I have no idea how to do this.

  • You must to post comments

Hi there,

You can try to use LabelProvider property on your axis. For it you should create custom LabelProvider by implementing ILabelProvider interface. There you can find UpdateDataContext method where you can change datacontext of each label by it value.

Best regards,
Taras B.
SciChart Developer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.