ChartLegendItemLineSettingsBuilder
Methods
Color(System.String)
The color of the legend item of type line. Accepts a valid CSS color string, including HEX and RGB. Defaults to the series color.
Parameters
value - System.String
The value for Color
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Line(l => l.Color("green"))))
)
DashType(Kendo.Mvc.UI.ChartDashType)
The dash type of the legend item of type line.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
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Line(l => l.Color("green"))))
)
Opacity(System.Double)
The opacity of the legend item of type line. Defaults to the series opacity.
Parameters
value - System.Double
The value for Opacity
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Legend(legend => legend.Item(item => item.Line(l => l.Color("green"))))
)