New to Telerik UI for ASP.NET MVC? Download free 30-day trial

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


            @(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


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

In this article
Not finding the help you need?