ChartSeriesMeanBuilder
Methods
Color(System.String)
The color of the mean visual. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Color
Example
Razor
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").Mean(mean => mean.Color("red"));
})
)
DashType(Kendo.Mvc.UI.ChartDashType)
The dash type of the mean visual.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.
Parameters
value - ChartDashType
The value for DashType
Example
Razor
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").Mean(mean => mean.DashType(ChartDashType.DashDot));
})
)
Opacity(System.Double)
The opacity of the mean visual. By default the border is opaque.
Parameters
value - System.Double
The value for Opacity
Example
Razor
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").Mean(mean => mean.Opacity(0.5));
})
)
Width(System.Double)
The width of the mean visual in pixels.
Parameters
value - System.Double
The value for Width
Example
Razor
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").Mean(mean => mean.Width(200));
})
)