SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.