Hello
I cannot seem to group my stores together on x-axis who all fall within a province while also having two values per store( current and previous year values).
Help much appreciated.
@(Html.Kendo().Chart(Model.BarChartDataVAL)
.Name("VALBarChart")
.Theme("Silver")
.ChartArea(chartArea => chartArea
.Background("#f2f2f2")
)
.Series(series =>
{
series.Column(model => model.PreviousValue).Tooltip(tooltip => tooltip
.Visible(true)
.Template("#=dataItem.Element#: Previous Year R #= kendo.toString(value,'n2') #"));
series.Column(model => model.Value).Tooltip(tooltip => tooltip
.Visible(true)
.Template("#=dataItem.Element#: R #= kendo.toString(value,'n2') #"));
})
.Legend(legend => legend
.Visible(true)
.Position(ChartLegendPosition.Top)
)
.CategoryAxis(axis => axis
.Categories(model => model.Province).Labels(labels => labels.Rotation(270))
.AxisCrossingValue(0)
)
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels
.Format("R {0:n2}")
.Skip(2)
.Step(2)
)
))
I cannot seem to group my stores together on x-axis who all fall within a province while also having two values per store( current and previous year values).
Help much appreciated.
@(Html.Kendo().Chart(Model.BarChartDataVAL)
.Name("VALBarChart")
.Theme("Silver")
.ChartArea(chartArea => chartArea
.Background("#f2f2f2")
)
.Series(series =>
{
series.Column(model => model.PreviousValue).Tooltip(tooltip => tooltip
.Visible(true)
.Template("#=dataItem.Element#: Previous Year R #= kendo.toString(value,'n2') #"));
series.Column(model => model.Value).Tooltip(tooltip => tooltip
.Visible(true)
.Template("#=dataItem.Element#: R #= kendo.toString(value,'n2') #"));
})
.Legend(legend => legend
.Visible(true)
.Position(ChartLegendPosition.Top)
)
.CategoryAxis(axis => axis
.Categories(model => model.Province).Labels(labels => labels.Rotation(270))
.AxisCrossingValue(0)
)
.ValueAxis(axis => axis.Numeric()
.Labels(labels => labels
.Format("R {0:n2}")
.Skip(2)
.Step(2)
)
))