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

Answered
0
0

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?

Version
4.3.0.4686
  • You must to post comments
Best Answer
0
0

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

  • Eyram Dornor
    That worked – specifically option 2. Thank you!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.