Pre loader

When I insert a series of data, the hollow K diagram shows the error, and a line is displayed in the middle

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

0
0

When I insert a series of data, the hollow K diagram shows the error, and a line is displayed in the middle

ohlcSeries.insertRange(0,date,open,high,low,close);

My Settings are as follows:

candlestickSeries = sciChartBuilder.newCandlestickSeries()
            .withStrokeUp(UP_COLOR)
            .withStrokeDown(DOWN_COLOR)
            .withDataSeries(ohlcSeries)
            .withFillDownColor(0xFFFFFFFF)
            .withFillUpColor(UP_COLOR)
            .build();

How can I solve this problem?Please see the attachment for details。

Version
2.0.0.1884
Attachments
Images
  • You must to post comments
0
0

Hi Huang,

There is an error in your code – when you invoke method which inserts data it has incorrect parameters.

Method in SciK class is declared with next signature:

    public void insertData(List<Date> date, List<Double> open, List<Double> low, List<Double> high, List<Double> close){
         ohlcSeries.insertRange(0,date,open,high,low,close);
    }

but it is invoked with swapped low and high params for some reason :

 sciK.insertData(date, open, high, low, close);

That’s why you got those lines after inserting second data batch.

Best regards,
Yura.

  • You must to post comments
0
0

thanks

  • You must to post comments
Showing 2 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