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

0
1

I set a rolloverModifier to a CandlestickSeries, but I can not find a API to hide RolloverMarker,I only find a article about WPF(https://www.scichart.com/documentation/v5.x/webframe.html#RolloverModifier.html), how could I hide RolloverMarker or change the style of RolloverMarker in Android?

enter image description here

Version
2.5.0.2547
  • You must to post comments
0
0

Hi Jiahao,

To hide RolloverModifier ( like other modifiers ) you can disable it by setting IsEnabled = false:

        rolloverModifier.setIsEnabled(false);

If you want to customize RolloverModifier’s tooltips you can take a look on our example from demo application. To customize drawing of circle you’ll need to override onDrawTooltipOverlay() of custom tooltip implementation. By default this method looks like this and draws simple circle:

    private final Paint rolloverMarkerPaint = new Paint();
    private float markerRadius;

    public void onDrawTooltipOverlay(Canvas canvas, PointF xyCoordinate, int color) {
        rolloverMarkerPaint.setColor(color);
        canvas.drawCircle(xyCoordinate.x, xyCoordinate.y, markerRadius, rolloverMarkerPaint);
    }

Hope this will help you!

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.