@(Html.Kendo().Chart(Model) .Name("chart") .Legend(legend => legend .Visible(true) .Position(ChartLegendPosition.Top)) .Series(series => { series .Column(model => model.zerotofivevalues , categoryExpression: model => model.zerotofive ).Stack(ChartStackType.Normal) .Aggregate(ChartSeriesAggregate.Avg) .Labels(labels => labels.Visible(true).Position(ChartBarLabelsPosition.Center)); series .Column(model => model.fivetotenvalue, categoryExpression: model => model.fivetoten).Stack(ChartStackType.Normal) .Aggregate(ChartSeriesAggregate.Count) .Labels(labels => labels.Visible(true).Position(ChartBarLabelsPosition.Center)); series .Column(model => model.tentofifteenvalue, categoryExpression: model => model.tentofifteen).Stack(ChartStackType.Normal) .Aggregate(ChartSeriesAggregate.Count) .Labels(labels => labels.Visible(true).Position(ChartBarLabelsPosition.Center)); }) .Theme("metro") .Tooltip(tooltip => tooltip .Visible(true) .Template("#= series.name #: #= value #")) .Events(ev => ev.DataBound("onDB")) )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)