Defines the fluent interface for configuring bar series.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
The type of the data item
Syntax:
public class ChartOHLCSeriesBuilder<T> : ChartSeriesBuilderBase<IChartOHLCSeries, ChartOHLCSeriesBuilder<T>> where T : class
Inheritance: objectChartSeriesBuilderBase<IChartOHLCSeries, ChartOHLCSeriesBuilder<T>>ChartOHLCSeriesBuilder<T>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the ChartOHLCSeriesBuilder<T> class.
public ChartOHLCSeriesBuilder(IChartOHLCSeries series)
The series.
Methods
Sets the aggregate function for date series. This function is used when a category (an year, month, etc.) contains two or more points.
public ChartOHLCSeriesBuilder<T> Aggregate(ChartSeriesAggregate? open = null, ChartSeriesAggregate? high = null, ChartSeriesAggregate? low = null, ChartSeriesAggregate? close = null)
Open aggregate name.
highChartSeriesAggregate?High aggregate name.
lowChartSeriesAggregate?Low aggregate name.
closeChartSeriesAggregate?Close aggregate name.
Returns:Sets the points border
public ChartOHLCSeriesBuilder<T> Border(int width, string color, ChartDashType dashType)
The points border width.
colorstringThe points border color (CSS syntax).
dashTypeChartDashTypeThe points border dash type.
Returns:Sets the close field for the series
public ChartOHLCSeriesBuilder<T> CloseField(string closeField)
The close field for the series
Returns:Sets the color field for the series
public ChartOHLCSeriesBuilder<T> ColorField(string colorField)
The color field for the series
Returns:Sets the value fields for the series
public ChartOHLCSeriesBuilder<T> Fields(string openField, string highField, string lowField, string closeField)
The open field for the series
highFieldstringThe value fields for the series
lowFieldstringThe low field for the series
closeFieldstringThe close field for the series
Returns: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 1Sets the high field for the series
public ChartOHLCSeriesBuilder<T> HighField(string highField)
The high field for the series
Returns:Configures the series highlight
public ChartOHLCSeriesBuilder<T> Highlight(Action<ChartOHLCSeriesHighlightBuilder> configurator)
The configuration action.
Returns:Configures the ohlc chart lines.
public ChartOHLCSeriesBuilder<T> Line(Action<ChartLineBuilder> configurator)
The configuration action.
Returns:Configures the ohlc chart lines.
public ChartOHLCSeriesBuilder<T> Line(int width, string color, ChartDashType dashType)
The lines width.
colorstringThe lines color.
dashTypeChartDashTypeThe lines dashType.
Returns:Configures the ohlc line width.
Sets the low field for the series
public ChartOHLCSeriesBuilder<T> LowField(string lowField)
The low field for the series
Returns:Sets the note text field for the series
public ChartOHLCSeriesBuilder<T> NoteTextField(string noteTextField)
The note text field for the series
Returns:Sets the open field for the series
public ChartOHLCSeriesBuilder<T> OpenField(string openField)
The open field for the series
Returns:Sets a value indicating the distance between points in the same category.
public ChartOHLCSeriesBuilder<T> Spacing(double spacing)
Value of 1 means that the distance between points in the same category. The default value is 0.3
Returns: