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!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.