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
315
Interpolation in xamdatachart with OlapXaxis
posted

Hello

  Please let us know if there is a possibility to interpolate the data points in xamdatachart with OlapXaxis and Lineseries.

  This is required to avoid the discontinuity of lineseries.

Thanks

 

  • 34810
    Offline posted

    Hello M,

    Thank you for your post.

    By default, the OlapXAxis auto-generates the series that it uses based on the "DefaultSeries" property that is set on it. You can obtain these series as they are created by handling the SeriesCreating event on the OlapXAxis. The event arguments of this event has a Series property that will return you the series that is being created, and then you can set the UnknownValuePlotting property on that series to LinearInterpolate. The code to do this would look something like the following:

    LineSeries series = e.Series as LineSeries;
    series.UnknownValuePlotting = UnknownValuePlotting.LinearInterpolate;

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support