How create chart with 2 or 3 bars from DataSource
series.Bar(model => model.Sum).Name(""); // One Bar
series.Bar(model => model.Sum).Name(""); // Need new data????
@(Html.Kendo().Chart<CoreDiag.Models.CKassaLine>(Model)
.Name(
"Name1"
)
// The name of the Chart is mandatory. It specifies the "id" attribute of the widget.
.Title(
"Name1"
)
.Series(series =>
{
series.Bar(model => model.Sum).Name(
""
);
})
.CategoryAxis(axis => axis
.Categories(model => model.Period)
)
)