Pre loader

FastLineRenderableSeries handling of double.NaN values where IsDigitalLine=True

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

1
0

Hi,

When rendering a FastLineRenderableSeries, there are line segments missing both before and after a double.NaN Y value. This makes sense for a regular line series, but for a step line series (where IsDigitalLine=True), why isn’t the line segment preceding the NaN being drawn? When plotting (for example) financial prices over time, the missing line before the NaN gives the impression that a price didn’t exist for that period, which is incorrect.

I’m looking at the IterateLines method in FastLinesHelper. Even though the method has an isDigitalLine parameter, it isn’t checked during the handling of a NaN value. Is this an oversight?

Thanks very much,

Graham.

Version
4.2.3.9983
  • Yuriy Zadereckiy
    Hi Graham, thank you for pointing this to us. I don’t think there is an oversight there, this is just how it was intended to work. Could you please attach an image to your post showing the desired behavior? We will investigate then whether the implementation can be changed accordingly.
  • Graham Stoneman
    Hi Yuriy, I provided all the examples below, is there please anything which can be done to plot the missing lines? Thanks very much, Graham.
  • You must to post comments
0
0

Hi,

Sure, attached is a very small example of what I mean. In this case it is an FX rate vs time. data.txt is in CSV format, chart_current.png shows what SciChart is plotting now using a step line series (IsDigitalLine=True), and chart_expected.png shows the lines which we would like to be shown (and which some competitor chart controls already show).

The line should only be broken where the rate is unknown. But here for the time between 09:13:06.005 and 09:13:21.107, there is a known rate which isn’t being drawn. Anybody using the chart to look up a rate during this time would assume that one didn’t exist, which is incorrect.

I know that we could implement our own renderable series, but then we risk losing any improvements which you add to FastLinesHelper in the future. So is it please possible to update the drawing routine to include these lines, or provide an option on the series to draw them?

Thanks very much,

Graham.

Attachments
Images
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.