Pre loader

Dashed line annotation

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

0
0

Hey guys,

Starting from 2.0 we can have dashed lines in renderable series. I was wondering can we have dashed line annotations as well?

I tried this:

verticalLineAnnotation.style.linePen = [[SCIPenDashed alloc] initWithColor:[UIColor redColor] width:2 withStrokeDashArray:@[@(10.f),@(3.f)]];

and got this build error:

Assigning to 'SCIPenStyle *' from incompatible type 'SCIPenDashed *'

Isn’t SCIPenDashed a SCIPenStyle?

Best,
Igor

Version
2.0
  • You must to post comments
0
0

Hi, Igor

Seems that you should use SCISolidPenStyle instead SCIPenDashed like

sellMarker.style.markerLinePen = [[SCISolidPenStyle alloc] initWithColor:[UIColor whiteColor] withThickness:4 andStrokeDash:@[@(0.1f), @(0.3f), @(0.1f), @(0.3f)]];

But it’s doesn’t work for me also
So, please, lets me know if you find right way how to use it

Best regards,
Sushynski Andrei

  • Igor Peric
    Thanks for the suggestion. I think we should just wait for the release which supports it, as Mykola suggested.
  • You must to post comments
0
0

Hi, guys

Dashed line is not available for annotations right now, only for renderable series, and it will be done after release, in minor version.

Best Regards, Mykola

  • Igor Peric
    Thanks for the info. Looking forward to it! :)
  • You must to post comments
Showing 2 results
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