Kendo.Mvc.UI.Fluent.ChartLineSeriesBuilderBase
Defines the fluent interface for configuring Line series.
Methods
Stack(System.Boolean)
Sets a value indicating if the lines should be stacked.
Parameters
stacked System.Boolean
A value indicating if the lines should be stacked.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Line(s => s.Sales).Stack(true))
)
Stack(Kendo.Mvc.UI.ChartStackType)
Sets a value indicating the type of stacking to use.
Parameters
type Kendo.Mvc.UI.ChartStackType
A value indicating the stacking type.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Line(s => s.Sales).Stack(ChartStackType.Stack100))
)
Aggregate(Kendo.Mvc.UI.ChartSeriesAggregate)
Sets the aggregate function for date series. This function is used when a category (an year, month, etc.) contains two or more points.
Parameters
aggregate Kendo.Mvc.UI.ChartSeriesAggregate
Aggregate function name.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Line(s => s.Sales).Aggregate())
)
Labels(System.Action<Kendo.Mvc.UI.Fluent.ChartPointLabelsBuilder>)
Configures the line chart labels.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartPointLabelsBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Line(s => s.Sales)
.Labels(labels => labels
.Position(ChartBarLabelsPosition.Above)
.Visible(true)
)
)
)
Labels(System.Boolean)
Sets the visibility of line chart labels.
Parameters
visible System.Boolean
The visibility. The default value is false.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Line(s => s.Sales)
.Labels(true)
)
)
Width(System.Double)
Sets the line chart line width.
Parameters
width System.Double
The line width.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(s => s.Sales).Width(2))
)
DashType(Kendo.Mvc.UI.ChartDashType)
Sets the line chart line dash type.
Parameters
dashType Kendo.Mvc.UI.ChartDashType
The line dash type.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(s => s.Sales).DashType(ChartDashType.Dot))
)
Markers(System.Action<Kendo.Mvc.UI.Fluent.ChartMarkersBuilder>)
Configures the line chart markers.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartMarkersBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Line(s => s.Sales)
.Markers(markers => markers
.Type(ChartMarkerShape.Triangle)
)
)
)
Markers(System.Boolean)
Sets the visibility of line chart markers.
Parameters
visible System.Boolean
The visibility. The default value is true.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Line(s => s.Sales)
.Markers(true)
)
)
MissingValues(Kendo.Mvc.UI.ChartLineMissingValues)
Configures the behavior for handling missing values in line series.
Parameters
missingValues Kendo.Mvc.UI.ChartLineMissingValues
The missing values behavior. The default is to leave gaps.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Line(s => s.Sales)
.MissingValues(ChartLineMissingValues.Interpolate)
)
)
Field(System.String)
Sets the value field for the series
Parameters
field System.String
The value field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(Model.Records).Field("Value"))
)
CategoryField(System.String)
Sets the category field for the series
Parameters
categoryField System.String
The category field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(Model.Records).Field("Value").CategoryField("Category"))
)
ColorField(System.String)
Sets the color field for the series
Parameters
colorField System.String
The color field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(Model.Records).Field("Value").ColorField("Color"))
)
NoteTextField(System.String)
Sets the note text field for the series
Parameters
noteTextField System.String
The note text field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(Model.Records).Field("Value").NoteTextField("NoteText"))
)
Highlight(System.Action<Kendo.Mvc.UI.Fluent.ChartLineSeriesHighlightBuilder>)
Configures the series highlight
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLineSeriesHighlightBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.Line(Model.Records)
.Field("Value")
.Highlight(highlight => highlight.Visible(false))
)
)