I haven't been able to figure out how to set the series with a data source returned from a controller (see below). What do I need to pass to series.Line()?
The controller method returns a list of long integers.
@(Html.Kendo().Chart()
.Name("jobHistoryChart")
.Title("Batch Job History")
.Theme("Bootstrap")
.Legend(legend => legend.Visible(true).Position(ChartLegendPosition.Bottom))
.HtmlAttributes(new
{
style = "margin-top:15px; border:thin solid steelblue; padding:10px; padding-bottom:20px;"
})
.DataSource(dataSource => dataSource.Read(read => read.Action("GetBatchJobHistory", "Home",
new { histJobCaption = "Load Inventory Usage Summary Data" })))
//.Series(series =>
//{
// series.Line().Name("Batch Job");
//})
)
The controller method returns a list of long integers.
@(Html.Kendo().Chart()
.Name("jobHistoryChart")
.Title("Batch Job History")
.Theme("Bootstrap")
.Legend(legend => legend.Visible(true).Position(ChartLegendPosition.Bottom))
.HtmlAttributes(new
{
style = "margin-top:15px; border:thin solid steelblue; padding:10px; padding-bottom:20px;"
})
.DataSource(dataSource => dataSource.Read(read => read.Action("GetBatchJobHistory", "Home",
new { histJobCaption = "Load Inventory Usage Summary Data" })))
//.Series(series =>
//{
// series.Line().Name("Batch Job");
//})
)