ChartLegendItemAreaSettingsBuilder

Methods

Background(System.String)

The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB. Defaults to the series color.

Parameters

value - System.String

The value for Background

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Legend(legend => legend.Item(item => item.Area(a => a.Background("green"))))
            )
             

Opacity(System.Double)

The opacity of the legend item. Defaults to the series opacity.

Parameters

value - System.Double

The value for Opacity

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Legend(legend => legend.Item(item => item.Area(a => a.Opacity(10))))
            )