Pre loader

ChartSurface Refresh

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I have a scichart surface and i plot the chart after that i add max and min limits line to the chart surface.but i can’t able to view the limits line untill i double click the chart surface (Zoom Extents Modifier is used).how can i refresh the chart surface when the y axis scale value changed.In my limits function i call chartsurface.zoomextents but i will not helped.

Images
  • You must to post comments
0
0

Hi Raghupathy,

ZoomExtentsModifier simply calls the this code:

/// <summary>
/// Performs the zoom function. Called when the user double clicks (right mouse up). May be overridden in derived classes to customize what the zoom actually does
/// </summary>
protected virtual void PerformZoom()
{
    if (ParentSurface == null) return;

    if (ParentSurface.ChartModifier != null)
        ParentSurface.ChartModifier.ResetInertia();

    var duration = IsAnimated ? TimeSpan.FromMilliseconds(500) : TimeSpan.Zero;

    if (XyDirection == XyDirection.XYDirection)
    {
        ParentSurface.AnimateZoomExtents(duration);
    }
    else if (XyDirection == XyDirection.YDirection)
    {
        ParentSurface.AnimateZoomExtentsY(duration);
    }
    else
    {
        ParentSurface.AnimateZoomExtentsX(duration);
    }
}

So, if ZoomExtentsModifier calls AnimateZoomExtents(), then it stands to reason you should be able to call it too to get the same effect.

There may be something much more subtle going on here. Would you like to update your question with a code sample of what you are doing, whether you are using MVVM, what version of SciChart you are using and we will do our best to help.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies