I am looking to customize the shape of the rollover vertical line (Android) – particularly, make it dashed and potentially increase the line thickness.
I saw that this is possible for WPF (https://www.scichart.com/questions/wpf/crosshair-cursormodifier-color-and-thickness), but was not able to find any information for Android.
Is this styling capable in Android?
- Eyram Dornor asked 3 years ago
- You must login to post comments
Hi Eyram,
Well there are ways to style chart:
- using ThemeManager API, but by default you can’t specify dash pattern in XML. To add dash support you would need to reimplement entire IThemeProvider interface to return PenStyle with dash pattern for RolloverLineStyle property.
- you can set properties directly on Paint that is used by RolloverModifier to draw vertical line, but you should set its properties only after you add RolloverModifier into modifier collection of chart. This is required because your value can be overridden by default theme from ThemeProvider and default theme is applied when it’s attached to chart ( in case of modifiers when it’s added into modifier collection ), so custom values for Paint should be set afterwards.
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 3 years ago
-
That worked – specifically option 2. Thank you!
- You must login to post comments
Please login first to submit.