Pre loader

How to decorate candles

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

Now I using different library for displaing candles.
And have two different styles of candles.
enter image description here

An author of library that I using strongly recomended this one library.
And I try to port my app to SciChart.
How can I change CandlestickSeries to displayed as a Bar Chart

Version
2.0.0.1654
Images
  • You must to post comments
1
0

Hi Evgeny,

We have a separate series type which is called FastOhlcRenderableSeries which should provide desired output.

To implement switching you can create two renderable series ( candlestick and OHLC ) which share same data series instance and use setIsVisible() method to make one of them visible and other invisible:

    final IOhlcDataSeries<Date, Double> dataSeries = new OhlcDataSeries<>(Date.class, Double.class);

    // init series with shared dataSeries instance
    final FastCandlestickRenderableSeries candlestickSeries = sciChartBuilder.newCandlestickSeries().withDataSeries(dataSeries).build();
    final FastOhlcRenderableSeries ohlcSeries = sciChartBuilder.newOhlcSeries().withDataSeries(dataSeries).build();

    // make one series visible and other invisible
    candlestickSeries.setIsVisible(true);
    ohlcSeries.setIsVisible(false);

Hope that this will help you!

Best regards,
Yura

  • Evgeny Khramov
    Thank you very much! This works great. I think problem is with sample CreateRealTimeTickingStockChartFragment I have seen this sample before but when I run sample on devise I do not see differents with CandlestickSeries I think you can zoom in this sample
  • You must to post comments
Showing 1 result
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