Kendo.Mvc.UI.Fluent.ChartWaterfallSeriesBuilder
Defines the fluent interface for configuring bar series.
Methods
Aggregate(Kendo.Mvc.UI.ChartSeriesAggregate)
Sets the aggregate function for Waterfall 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.Waterfall(model => model.Amount,
model => model.Period,
model => model.Summary)
.Aggregate(ChartSeriesAggregate.Avg))
)
Line(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Configures the series lines.
Parameters
width System.Int32
The lines width.
color System.String
The lines color.
dashType Kendo.Mvc.UI.ChartDashType
The lines dashType.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Waterfall(new int[] { 180, -60, -20, 10, 30 })
.Line(2, "red", ChartDashType.Dot)
)
)
Line(System.Int32)
Configures the series lines width.
Parameters
width System.Int32
The lines width.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Waterfall(new int[] { 180, -60, -20, 10, 30 })
.Line(2)
)
)
Line(System.Int32,System.String)
Configures the series lines.
Parameters
width System.Int32
The lines width.
color System.String
The lines color.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Waterfall(new int[] { 180, -60, -20, 10, 30 })
.Line(2, "red")
)
)
Line(System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilder>)
Configures the series lines.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Waterfall(new int[] { 180, -60, -20, 10, 30 })
.Line(line => line.Color("#00ff00"))
)
)
Stack(System.Boolean)
Sets a value indicating if the series should be stacked.
Parameters
stacked System.Boolean
A value indicating if the series should be stacked.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Waterfall(model => model.Amount,
model => model.Period,
model => model.Summary)
.Stack(true))
)
Stack(Kendo.Mvc.UI.ChartStackType,System.String)
Sets the type of stacking to use in the seris.
Parameters
stackType Kendo.Mvc.UI.ChartStackType
The stack type.
stackGroup System.String
The name of the stack group.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Waterfall(model => model.Amount,
model => model.Period,
model => model.Summary)
.Stack(ChartStackType.Stack100))
)
Stack(System.String)
Sets the name of the stack that this series belongs to. Each unique name creates a new stack.
Parameters
stackGroup System.String
The name of the stack group.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Waterfall(model => model.Amount,
model => model.Period,
model => model.Summary)
.Stack("stack1"))
)