ChartAreaLineBuilder

Methods

Opacity(System.Double)

Sets the opacity of the line for Area series. By default, the line is opaque.

Parameters

opacity - System.Double

The value that configures the opacity.

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => series
                          .Area(s => s.Sales)
                          .Line(line => line.Opacity(0.2))
                      )
            )
             

Style(Kendo.Mvc.UI.ChartAreaStyle)

Configures the line style for Area series.

Parameters

style - ChartAreaStyle

The enum value that configures the line style.

Example

Razor
 
            @(Html.Kendo().Chart()
                       .Name("Chart")
                       .Series(series => series
                           .Area(s => s.Sales)
                           .Line(line => line.Style(ChartAreaStyle.Step))
                       )
            )
             

Color(System.String)

Sets the line color

Parameters

color - System.String

The line color (CSS format).

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Color("#f00")))
            )
             

Width(System.Int32)

Sets the line width

Parameters

width - System.Int32

The line width.

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.Width(2)))
            )
             

DashType(Kendo.Mvc.UI.ChartDashType)

Sets the line dashType.

Parameters

dashType - ChartDashType

The line dashType.

Example

Razor
 
            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot)))
            )