Pre loader

Where should i setDrawNaNAs to exactly remove gaps from series?

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,
i have some candles and i want to force the chart for removing candles with
open = Double.NaN
high = Double.NaN
low = Double.NaN
close = Double.NaN
openTime – special day (timestamp)

What I see:

Version
4.4.0.4739
Images
  • Andrew Burnett-Thompson
    Hi Vahid, that looks like you’ve done the correct thing (set Open, High, Low, Close = NAN) and the candles are removed as expected? What is it you wanted to achieve?
  • Vahid Garousi
    I wanted these spaces to be completely removed so I don’t see empty space between the candles (with data) on the chart.
  • Vahid Garousi
    I have attached another photo to make it clearer.
  • You must to post comments
1
0

I have sent a picture to make it clearer.
I want to draw the following chart

Images
  • You must to post comments
1
0

Hi Vahid

Understand the problem now. You are using the Finance.Android open source financial charts library by the look of it, is that right?

This by default is using the DateAxis type in SciChart. DateAxis is useful for cryptocurrency data which trades 24/7, but not for stock market or forex data which can have gaps in it.

For that you need a different axis type, like IndexDateAxis or CategoryDateAxis,

I’m going to talk with the team and see if we can improve this because IndexDateAxis should be used by default in the finance library. That will collapse gaps in stock/forex data

Best regards
Andrew

  • You must to post comments
0
0

Hi, yes, that is absolutely true.

Could you please let me know the outcome of your conversation with the team?

  • You must to post comments
0
0

In the source code of Finanace Android, a branch with the name of solving the problem of chat has been created.

If this branch has solved the problem, please release it

thanks a lot

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies