Hi,
I have my model described like:
public class PerformanceChartSeriesModel_2
{
public string[] Date { get; set; }
public double[] P1 { get; set; }
}
Now, I chart :
@(Html.Kendo().Chart<PerformanceChartSeriesModel_2>()
.Name("chartPerformance")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.DataSource(ds => ds
.Read(read => read.Action("PerformanceChartData", "Performance").Data("performanceChartData"))
)
.Series(series =>
{
series.Line(p=>p.P1);
})
.CategoryAxis(axis =>
{
axis.Categories(l => l.Date);
})
Neither series nor categories pick up values, series actually behave in a strange way drawing only one point.
Could you tell what is wrong, or how can I work with such model.
Thanks.
I have my model described like:
public class PerformanceChartSeriesModel_2
{
public string[] Date { get; set; }
public double[] P1 { get; set; }
}
@(Html.Kendo().Chart<PerformanceChartSeriesModel_2>()
.Name("chartPerformance")
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
)
.DataSource(ds => ds
.Read(read => read.Action("PerformanceChartData", "Performance").Data("performanceChartData"))
)
.Series(series =>
{
series.Line(p=>p.P1);
})
.CategoryAxis(axis =>
{
axis.Categories(l => l.Date);
})
Could you tell what is wrong, or how can I work with such model.
Thanks.