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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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