The data series are not showing with follow setup:
XAML
<syncfusion:SfChart HorizontalAlignment="Right" x:Name="chart" />
C#-model
public class Data
{
public Data(DateTime date, params double[] value)
{
Date = date;
Value = value;
}
public DateTime Date
{
get;
set;
}
public double[] Value
{
get;
set;
}
}
C# controler
DataGenerator _viewModel = new DataGenerator();
ObservableCollection<Data> data = _viewModel.GenerateData(); / /data are correct generated here based on the model
FastLineSeries dataSeries = new FastLineSeries();
chart.Series.Add(dataSeries);
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.