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

Defines the fluent interface for configuring ChartLine.

Definition

Constructors

Initializes a new instance of the ChartLineBuilder class.

C#
public ChartLineBuilderBase(ChartLineBase chartLine)
Parameters:chartLineChartLineBase

The chart line.

Methods

Sets the line color

C#
public virtual ChartLineBuilderBase Color(string color)
Parameters:colorstring

The line color (CSS format).

Returns:

ChartLineBuilderBase

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

Sets the line dashType.

C#
public virtual ChartLineBuilderBase DashType(ChartDashType dashType)
Parameters:dashTypeChartDashType

The line dashType.

Returns:

ChartLineBuilderBase

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot)))
)

Sets the line width

C#
public virtual ChartLineBuilderBase Width(int width)
Parameters:widthint

The line width.

Returns:

ChartLineBuilderBase

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.MajorGridLines(lines => lines.Width(2)))
)