Pre loader

1

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

All Answers » Re: Is Resampling active? - ResamplingMode.Mid » Comments for "Re: Is Resampling active? - ResamplingMode.Mid"
  • Andreas Köhler
    Hi Andrew, I want the user to see all information and I do not want to withhold information from him. I have made two screenshots, with which I would like to explain my desired behavior to you. In the jpg “WithMinMaxInfo” you see my LineRenderableSeries in unzoomed state. The red line/band is generated with the resampling mode.MinMax. So I can see the whole range of values. However, a thick band is emerging. In the Z-order one level higher I have a LineRenderableSeries with the resampling mode.mid and the color grey. This shows, as expected, the averaged value. The user sees a slightly transparent value band in red, which shows the user the min/max values despite missing resolution at this point. Above this, the user sees the averaged value. In the second screenshot you see the same chart, only I zoomed in a bit. Thus the sciChart has only one data point per pixel on the screen and both LineRenderableSeries are the same, i.e. no red band is visible. In this case I want to disable the complete red LineRenderableSeries. I hope I was able to explain better what I want to do and why. I am looking forward to hearing from you
  • Andrew Burnett-Thompson
    If you don’t want to lose anything in screen I suggest using the default ResamplingMode.Auto. Is there a reason why you cannot use the default mode?
  • Andreas Köhler
    If you compare the two screens “WithMinMaxInfo(1).jpg” and “AutoMode.jpg”, you will see that AutoMode always creates a thick band and the user has to execute an averaging algorithm in his brain :). With my approach to show the user the averaged values and a slightly transparent band in the background as Min/Max Info, it is much easier for the user. And as you can see, it’s really more convenient than interpreting the data by the user. What is only needed is the information whether it is necessary to display this band. And exactly this I would have realized by asking SciChartControl if it was necessary to resample the data.
  • Andrew Burnett-Thompson
    The band is because your data actually crosses those levels. You can set ResamplingMode.None and see what the chart looks like without resampling. If we’ve done our job right Auto vs. None should be virtually the same. It sounds to me that you want to smooth the data to make it look less noisy when zoomed out but at the same time to not lose significant peaks + troughs, is that correct? I’m not really sure what to suggest in this case as SciChart doesn’t have such a feature. You can experiment with our Filters API which allows some smoothing of data maybe?
  • Andreas Köhler
    “It sounds to me that you want to smooth the data to make it look less noisy when zoomed out but at the same time to not lose significant peaks + troughs, is that correct?” That is exactly what I want to realize. And it works as you can see on the screenshots. The only thing missing now is to make the red band invisible when no resampling was necessary. And this action, i.e. to make the red line invisible, I have to perform. For this I only need the information whether a resampling of the data was necessary. I am sure SciChart has the information. I just can’t get that information. I’m looking forward to hearing from you. Andreas
  • Andreas Köhler
    Hello, Andrew, can you help me with my problem now or will this functionality not be available in the next time. General: Can’t this functionality be of general interest to you? I would like a brief answer. Thank you very much! Andreas
  • Andrew Burnett-Thompson
    Hi Andreas, I’ve already given you the calculation we use internally to determine when to use resampling. You can try that? PointIndices is the index of the points in the viewport e.g. if you have 10000 points and points 100-200 are visible then PointIndices = 100 to 200. ViewportWidth is the width of the viewport in pixels.