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
- Igor Peric asked 7 years ago
- You must login to post comments
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
- Andrei Sushynski answered 7 years ago
-
Thanks for the suggestion. I think we should just wait for the release which supports it, as Mykola suggested.
- You must login to post comments
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
- Mykola Hrybeniuk answered 7 years ago
-
Thanks for the info. Looking forward to it! :)
- You must login to post comments
Please login first to submit.