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

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
    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.