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

Answered
1
1

I am using XyDataSeries<double, double> and when the chart receives data it can happen that the user stops accepting data and wants to resume recording data at a later point. Just like a doctor taking a EEG. He starts the printout and then stops. Tells the patient to do something and resumes the printout. Then he sees the 2 recordings side by side. Separated by a vertical line – no gaps. Thats what I want to achieve. But currently my chart looks like this.
What do I have to set to get the desired result? (Ignore missing values inbetween if all series don’t have data.
I was also already making an annotation which worked until I included the stop in appending. Now I don’t see the annotation any more but my real problem is that I want to have no gap. The drawing of the lines should resume at the point where it stopped before.
I tried unsorteddata but no change. And I was looking for an unevenlySpaced property but there was none to my series.

EDIT
I added a picture put together from the first with how I would like to have it look from the same data. I would like to have no gaps in between the 2 data points.

Images
  • You must to post comments
Good Answer
0
0
  • You must to post comments
0
0

Hi Uwe,

Please see this prevous question which covers rendering gaps in line series.

Hiding data when using a line series

Best regards,
Andrew

  • Andrew
    If you want to insert a gap into a DataSeries, the only way is to add a point with X=last X and Y=double.NaN and to use the FastLineRenerableSeries.DrawNanAs property to choose 'Gaps'. This breaks the series into segments. This is the only way to do it other than overriding the rendering of FastLineRenderableSeries completely.
  • Uwe Hafner
    I tried to provide more information in the edit of the question. I actually don't try to get a gap but to remove the one that is visible. Is this possible?
  • Andrew
    Ah I understand, you want to collapse gaps in the data. What you are looking for is called a DiscontinuousDateTimeAxis https://www.scichart.com/questions/question/removing-intervals-from-datetimeaxis and no we do not support it yet as doing so will introduce many performance problems. The closest implementation is the CategoryDateTimeAxis, which is described here http://support.scichart.com/index.php?/Knowledgebase/Article/View/17190/29/categorydatetimeaxis-vs-datetimeaxis
  • Uwe Hafner
    I had seen that but I was hoping to find that for double series. So I have the option to see if I can switch to categoryDateTimeAxis or to override rendering of FastLineRenderableSeries? What does it imply to override the rendering. Do you have an article on that? (Sounds like heavy lifting?)
  • Andrew
    For what you want to do (collapse the entire chart between two points where there is no data), the only option is to use CategoryDateTimeAxis
Showing 2 results
Your Answer

Please first to submit.