ChartLegendFocusHighlightBorderSettingsBuilder

Methods

Color(System.String)

The color of the focus highlight border. 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")
                      .Legend(legend => legend
                        .Position(ChartLegendPosition.Bottom)
                        .FocusHighlight(f=>f.Border(b=>b
                           .Color("brown")
                        ))
                    )
            )
             

DashType(Kendo.Mvc.UI.ChartDashType)

The dash type of the focus highlight 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

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Legend(legend => legend
                        .Position(ChartLegendPosition.Bottom)
                        .FocusHighlight(f=>f.Border(b=>b
                           .DashType(ChartDashType.Solid)
                        ))
                    )
            )
             

Width(System.Double)

The width of the focus highlight border in pixels.

Parameters

value - System.Double

The value for Width

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Legend(legend => legend
                        .Position(ChartLegendPosition.Bottom)
                        .FocusHighlight(f=>f.Border(b=>b
                           .Width(3)
                        ))
                    )
            )
             

Opacity(System.Double)

The opacity of the focus highlight border.

Parameters

value - System.Double

The value for Opacity

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Legend(legend => legend
                        .Position(ChartLegendPosition.Bottom)
                        .FocusHighlight(f=>f.Border(b=>b
                           .Opacity(0.7)
                        ))
                    )
            )