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.
Unfortunately, activation email could not send to your email. Please try again.

CandleSeries - HiLo shadows / OHLC chart open & close markers

Thread ID:

Created:

Updated:

Platform:

Replies:

108191 Apr 8,2013 05:27 PM Apr 11,2013 07:52 AM WinRT 2
loading
Tags: Chart
Arian Hoxha
Asked On April 8, 2013 05:27 PM

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

Arian Hoxha
Replied On April 8, 2013 06:14 PM

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?

Karthikeyan V [Syncfusion]
Replied On April 11, 2013 07:52 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;