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

Have a look at the example. I’d like to get rid of the brown line between June 10 and 11. Since there’s no day between 10 and 11, I can’t use the draw NaN as gap option here. Or can I?

Thanks,
Ruud

Images
  • You must to post comments
0
0

If you repeat the point at either X=10th June or X=12th June but set Y=NaN it will put a break in the line.

So your data will look like

X=9th Y=(some value)
X=10th Y=(some value)
X=12th Y=NaN
X=12th Y=(some value)
X=13th Y=(some value)

  • You must to post comments
0
0

Thanks for your reply. Your suggestion indeed puts a break in the line, but unfortunately it also moves everything after the gap one position to the right. So the June 12th value is displayed under June 13 etc…

What am I missing?

  • Andrew
    I haven’t tried it but I can give you three simple things to try. Try X=10th, X=11th. What happens?If you are using CategoryDateTimeAxis it is important that all series have the same number of points unfortunately. So you will have to put a NaN in the Candlestick series as well. But that will probably have the side-effect of having a gap in the candlestick chart (undesired).Come of think of it the only way might be to override FastLineRenderableSeries.Draw and do the drawing yourself. We have a tutorial here on this powerful custom series API http://support.scichart.com/index.php?/Knowledgebase/Article/View/17254/41/creating-a-custom-spline-line-series
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.