We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

CandleSeries - HiLo shadows / OHLC chart open & close markers

Till now I was only able to get marubozus into the chart, does the SfChart control support the rendering of the upper/lower shadows?
If so, how can this be done? If not, will there be an update?

I also noticed, that the open & close markers on the rendered HiLoOpenCloseSeries are positioned on the wrong side of the line.

Please take a look at the attached screenshots, where I highlighted the mentioned issues.

Regards,
Sebastian



ChartError_8be5ce73.zip

2 Replies

AH Arian Hoxha April 8, 2013 10:14 PM UTC

Update concerning OHLC chart: 
It just seems to be an issue with the default colors. The issue does not occur, when I specifically set the two color properties.

Update concerning CandleSeries:
After setting the CandleSeries.Stroke property to a specific solid brush, I can now see the shadows - is there a way to utilize the Bear- or BullFillColor instead?


KV Karthikeyan V Syncfusion Team April 11, 2013 11:52 AM UTC

Hi Arian,

 

Thanks for using Syncfusion products.

 

Query 1: OHLC chart open & close markers

 

Thanks for the helping us define this issue. We have changed the default color of BearFillColor and BullFillColor property. This fix will be available in our upcoming release.

 

Query 2: Candle Series

 

We have analyzed the reported query. We would like to inform you that we have prepared the workaround for your requirement and this can be achieved by applying below code snippet.

 

Code Snippet [C#]:

    public class CandleSeriesEXT : CandleSeries

    {

        public CandleSeriesEXT()

        {

        }

      

       public override void CreateSegments()

       {

           base.CreateSegments();

           for (int i = 0; i < this.DataCount; i++)

           {

               double y1 = OpenValues[i];

               double y2 = CloseValues[i];

               if (y1 < y2)

               {

                   this.Segments[i].Stroke = this.BullFillColor;

               }

               else

               {

                   this.Segments[i].Stroke = this.BearFillColor;

               }

           }

         

       }

    }

Please find the sample in the following location. Please let us know if you require any further assistance on this.

 

Regards,

Karthikeyan V.

Sample :



CandleSeries_93adc543.zip

Loader.
Live Chat Icon For mobile
Up arrow icon