Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
630
PinchGesture for CustomMarkers
posted

Hello,

is it possible to add a PinchGestureRecognizer to increase the font of the custom markers? 

I have a simple test chart with one columnseries and a ResolveMarkerView delegate. On zooming/pinching the width of the columns are changing but not the labels with the value inside.

Maybe you have a sample how to manage it.

Thanks,

Johann

Parents
No Data
Reply
  • 26458
    Offline posted

    Hi Johann,

    You should be able to adjust the font of the text markers right in ResolveMarkerView delegate method.
    If you're using the textView to show your labels, for example, you can set textView.Font = UIFont.FromName("Helvetica", 12 * chartView.ZoomScale)
    Reference to chartView should be available to you as one of the parameters in ResolveMarkerView.
    This will effectively scale the font size along with the chart view. 

Children
No Data