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: No gaps on x-axis when there is no data » Comments for "Re: No gaps on x-axis when there is no data"
  • Uwe Hafner
    Hello Andrew, I know the sample but thats not what I am looking for. The result if I use this setting is the same for both settings (see the picture - even with NoGaps there are no gaps always a line). Maybe it is because of the data in my series?. For x values I get for example: 1,2,3,4,5, 700,701,702. There is no data in between 5 and 700. Not even NaN. Just nothing. And even if there were NaN when I look at the sample there is a visual gap between the 2 points. I am rather looking for a setting like "evenlySpacedForNonExistingValues". If I want to space them apart I could deliver NaN.
  • Andrew Burnett-Thompson
    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 Burnett-Thompson
    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 Burnett-Thompson
    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