ChartSeriesLegendItemMarkersBorderSettingsBuilder
Methods
Color(System.String)
The configuration of the Chart legend item markers border.
Parameters
value - System.String
The value for Color
Example
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").LegendItem(legendItem => legendItem.Markers(markers => markers.Border(border => border.Color(("blue")))));
})
)
ColorHandler(System.String)
The configuration of the Chart legend item markers border.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").LegendItem(legendItem => legendItem.Markers(markers => markers.Border(border => border.ColorHandler(("colorHandler")))));
})
)
ColorHandler(System.Func)
The configuration of the Chart legend item markers border.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("chart")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").LegendItem(legendItem => legendItem.Markers(markers => markers.Border(border => border.ColorHandler(@<text>
function() {
//code
}
</text>)))));
})
)
DashType(Kendo.Mvc.UI.ChartDashType)
The dash type of the legend item border.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")
.Series(series =>
{
series.Column(model => model.UnitPrice).Name("Unit Price").LegendItem(legendItem => legendItem.Markers(markers => markers.Border(border => border.DashType(ChartDashType.LongDash))));
})
)