Hi,
I was wondering if line charts had the capability to set the chart area's background color? (see image attached)
I tried doing something like this, but all I get is the line.
I was wondering if line charts had the capability to set the chart area's background color? (see image attached)
I tried doing something like this, but all I get is the line.
@(Html.Kendo().Chart() .Name("KendoChart") .Title("Sample Chart") .ChartArea(chart => {chart.Width(600).Border(1, "#000", ChartDashType.Solid);}) .HtmlAttributes(new { style = "width:600px;height:400px;float:left;margin:2px" }) .Series(s => { s.Line(new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }); }) .Tooltip(tip => tip.Visible(true)) .YAxis(y => { y.Numeric().Min(0).Max(3000).MajorUnit(100).PlotBands(bands => { bands.Add().From(0).To(3).Color("yellow").Opacity(0.3); bands.Add().From(3).To(6).Color("orange").Opacity(0.3); bands.Add().From(6).To(9).Color("red").Opacity(0.3); }); }) .Legend(legend => legend.Visible(true).Position(ChartLegendPosition.Bottom)) )