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
close icon

SfChart with array in YBindingPath

The data series are not showing with follow setup:


<syncfusion:SfChart HorizontalAlignment="Right" x:Name="chart" />


    public class Data
        public Data(DateTime date, params double[] value)
            Date = date;
            Value = value;

        public DateTime Date

        public double[] Value

C# controler

           DataGenerator _viewModel = new DataGenerator();
           ObservableCollection<Data> data = _viewModel.GenerateData(); / /data are correct generated here based on the model
           FastLineSeries dataSeries = new FastLineSeries();

            dataSeries.ItemsSource = data;
            dataSeries.XBindingPath = "Date";
            dataSeries.YBindingPath = "Value[0]";

The "Value[0]" expression is the problem. When it changed to "Value" and Value return a double, then the chart will be drawn.

1 Reply

RA Rachel A Syncfusion Team January 14, 2015 10:06 AM UTC

Hi Nico,

We are sorry to let you know that, we don’t have support for using an Array type property (Value [0]) to chart Y-Axis. We are able to use only Double or Int type properties.

Please let us know if you need any further assistance.


Rachel. A

Live Chat Icon For mobile
Up arrow icon