Pre loader

ZoomExtents Issue with LogarithmicNumericAxis

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

Hello,

I’m having an issue plotting an FFT series on a Logarithmic axis using an Impulse chart. I have a ZoomExtentsModifier on my Surface (executes on MouseDoubleClick) that seems to only work for the X (non-log) axis. The Y axis doesn’t change at all when I double click, or when I call DataSeries.InvalidateParentSurface(RangeMode.ZoomToFit) from my ViewModel. If I change my axis to NumericAxis then ZoomExtents/ZoomToFit works fine.

Any suggestions would be appreciated.

Thanks.

  • You must to post comments
0
0

Hi,

FFT series seems to have negative values inside. If so, it can’t be rendered with the Logarithmic axis.

Does this make sense?

Best regards,
Yuriy

  • jsacks
    Hi Yuriy, Sorry for the delay, I was apparently not subscribed to update notifications on this thread. I double checked the values that are being plotted, and confirmed that none of them are negative. The plot is sort of rendered, but ZoomExtents() doesn't work on the y-axis (i.e. if I pan the chart and then double click to trigger ZoomExtents, the x-axis zooms but the y-axis doesn't change). Probably related, I initially have to pan around to find the data when the chart first loads. Thanks for your help.
  • Yuriy Zadereckiy
    Hi there, As the example shows, you have zeros in your data, so the axis works unpredictable as cannot calculate lg(0)(take a look at cSeries2 the very first data point). So if you exclude all zeros it should work as expected. Best regards, Yuriy
  • jsacks
    Ah you are right. I checked for negative numbers but not zeros. Removing the zeros fixes the issues. Thanks for your help.
  • 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