I am trying to bind a stacked kendo Bar chart Through MVC model ,but getting an error "cannot convert lambda expression to type 'double' because it is not a delegate type".
@(Html.Kendo().Chart(Model)
.Name("chart3")
.Title(title => title
.Text("Comments per day")
.Align(ChartTextAlignment.Left)
)
.Legend(legend => legend
.Visible(false)
)
.Series(series =>
{
series.Column(new double[]{model => model.PerIdlingHours}
)
.Labels(labels => labels.Background("transparent").Visible(true));
})
.CategoryAxis(axis => axis
.Categories(model => model.DataDate)
.MajorGridLines(lines => lines.Visible(false))
.Line(line => line.Visible(false))
)
.ValueAxis(axis => axis.Numeric()
.Max(28)
.MajorGridLines(lines => lines.Visible(false))
.Visible(false)
)
)
This is how we can create the kendo bar chart