Kendo.Mvc.UI.Fluent.ChartOHLCSeriesBuilder
Defines the fluent interface for configuring bar series.
Methods
Aggregate(System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>,System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>,System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>,System.Nullable<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
open System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>
Open aggregate name.
high System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>
High aggregate name.
low System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>
Low aggregate name.
close System.Nullable<Kendo.Mvc.UI.ChartSeriesAggregate>
Close aggregate name.
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.OHLC(s => s.Sales).Aggregate(ChartSeriesAggregate.Avg))
)
Gap(System.Double)
Set distance between category clusters.
A value of 1 means that there is a total of 1 point width between categories.
The distance is distributed evenly on each side.
The default value is 1
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.OHLC(s => s.Sales).Gap(1.5))
)
Spacing(System.Double)
Sets a value indicating the distance between points in the same category.
Parameters
spacing System.Double
Value of 1 means that the distance between points in the same category. The default value is 0.3
Example (ASPX)
@(Html.Kendo().Chart(Model)
.Name("Chart")
.Series(series => series.Spacing(s => s.Sales).Spacing(1))
)
Border(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Sets the points border
Parameters
width System.Int32
The points border width.
color System.String
The points border color (CSS syntax).
dashType Kendo.Mvc.UI.ChartDashType
The points border dash type.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(s => s.Sales).Border("1", "#000", ChartDashType.Dot))
)
Line(System.Int32,System.String,Kendo.Mvc.UI.ChartDashType)
Configures the ohlc chart 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
.OHLC(s => s.Sales)
.Line(2, "red", ChartDashType.Dot)
)
)
Line(System.Int32)
Configures the ohlc line width.
Parameters
width System.Int32
The lines width.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
.Line(2)
)
)
Line(System.Int32,System.String)
Configures the ohlc lines.
Parameters
width System.Int32
The lines width.
color System.String
The lines color.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
.Line(2, "orange")
)
)
Line(System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilder>)
Configures the ohlc chart lines.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartLineBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
.Line(line => line.Opacity(0.2))
)
)
Highlight(System.Action<Kendo.Mvc.UI.Fluent.ChartOHLCSeriesHighlightBuilder>)
Configures the series highlight
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartOHLCSeriesHighlightBuilder>
The configuration action.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.Area(s => s.Sales)
.Highlight(highlight => highlight.Line(2, "yellow"))
)
)
OpenField(System.String)
Sets the open field for the series
Parameters
openField System.String
The open field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close"))
)
CloseField(System.String)
Sets the close field for the series
Parameters
closeField System.String
The close field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close"))
)
HighField(System.String)
Sets the high field for the series
Parameters
highField System.String
The high field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close"))
)
LowField(System.String)
Sets the low field for the series
Parameters
lowField System.String
The low field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close"))
)
Fields(System.String,System.String,System.String,System.String)
Sets the value fields for the series
Parameters
openField System.String
The open field for the series
highField System.String
The value fields for the series
lowField System.String
The low field for the series
closeField System.String
The close field for the series
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series.OHLC(Model.Records).Fields("Open", "High", "Low", "Close"))
)
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.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close").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.OHLC(Model.Records).OpenField("Open").HighField("High").LowField("Low").CloseField("Close").NoteTextField("NoteText"))
)