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.
Syncfusion Feedback

Wrong HiLoOpenCloseSeries and CandleSeries

Thread ID:

Created:

Updated:

Platform:

Replies:

123294 Mar 4,2016 06:28 AM UTC Mar 7,2016 12:28 PM UTC Xamarin.Forms 1
loading
Tags: SfChart
campfire
Asked On March 4, 2016 06:28 AM UTC

I used the following code to generate HiLoOpenCloseSeries and CandleSeries, but got a wrong result

chart = new SfChart();
var dateAxis = new DateTimeAxis { Title = new ChartAxisTitle { Text = "Date" }, Minimum = new DateTime(2000, 1, 1), Maximum = new DateTime(2046, 1, 1), Interval = 5 };
var valueAsix = new NumericalAxis { Title = new ChartAxisTitle { Text = "Price" }};
chart.PrimaryAxis = dateAxis;
chart.SecondaryAxis = valueAsix;
chart.Series.Add(new HiLoOpenCloseSeries
{
    ItemsSource = new ObservableCollection<ChartDataPoint>
    {
        new ChartDataPoint(new DateTime(2000, 1, 1), 873.8, 878.85, 855.5, 860.5),
        new ChartDataPoint(new DateTime(2004, 1, 1), 861, 868.4, 835.2, 843.45),
        new ChartDataPoint(new DateTime(2008, 1, 1), 846.15, 853, 838.5, 847.5),
        new ChartDataPoint(new DateTime(2012, 1, 1), 846, 860.75, 841, 855),
        new ChartDataPoint(new DateTime(2016, 1, 1), 841, 845, 827.85, 838.65),
        new ChartDataPoint(new DateTime(2020, 1, 1), 873.8, 878.85, 855.5, 860.5),
        new ChartDataPoint(new DateTime(2024, 1, 1), 861, 868.4, 835.2, 843.45),
        new ChartDataPoint(new DateTime(2028, 1, 1), 846.15, 853, 838.5, 847.5),
        new ChartDataPoint(new DateTime(2032, 1, 1), 846, 860.75, 841, 855),
        new ChartDataPoint(new DateTime(2036, 1, 1), 841, 845, 827.85, 838.65),
        new ChartDataPoint(new DateTime(2030, 1, 1), 873.8, 878.85, 855.5, 860.5),
        new ChartDataPoint(new DateTime(2034, 1, 1), 861, 868.4, 835.2, 843.45),
        new ChartDataPoint(new DateTime(2038, 1, 1), 846.15, 853, 838.5, 847.5),
        new ChartDataPoint(new DateTime(2042, 1, 1), 846, 860.75, 841, 855),
        new ChartDataPoint(new DateTime(2046, 1, 1), 841, 845, 827.85, 838.65),
    }
});

Only the green are right, others show the same open close price, or open shows the close value, close shows the open value, CandleSeries is the same

Thanks

Attachment: sfchart_e529ad2f.zip

Manivannan Elangovan [Syncfusion]
Replied On March 7, 2016 12:28 PM UTC

Hi Campfire,

Thanks for contacting Syncfusion support.

We have created an incident under your Direct Trac account. Our support engineer will assist you through incident. So we request you to follow with the incident for further details.

Our Direct Trac support system can be accessed from the following link:

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Thanks,
Manivannan E.

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.

Warning Icon 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.Close Icon

;