Pre loader

Vertical band shading for weekend dates

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

1
0

Hi everyone,

What would be the easiest way of shading all vertical bands for weekend days? I’ve got two ideas:

  1. Setting major band brush won’t work because there’s no way of setting only weekend bands to be major bands (as far as I know).
  2. Using box annotations.

Problem with 2nd option is that annotations are rendered over the chart (screenshot attached). Is there a way of sending them behind columns?

Thanks,
Igor

Version
2.0
Images
  • You must to post comments
1
0

Good day

If you achieved desired look with box annotations try setting the following property:

boxAnnotation.style.layer =  SCIAnnotationLayer_Underlay;

btw, you can achieve the same by creating subclass of SCIDateTimeAxis and override method

-(void)drawBandsWithContext:(id <SCIRenderContext2DProtocol>)renderContext

In that case you will have to draw bands manually using our drawing context.

Best regards
Andrii
SciChart iOS Developer

  • Igor Peric
    Haven’t tried yet but both alternatives seem quite promising! :) Thanks, I’ll get back with the result.
  • Igor Peric
    Yeah, SCIAnnotationLayer_Underlay was exactly what I needed. Thanks! :)
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies