Class StockChart
Inheritance
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChart : EJTagHelper
Constructors
StockChart()
Declaration
public StockChart()
Properties
Annotations
The configuration for annotation in chart.
Declaration
public List<StockChartAnnotationSettings> Annotations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartAnnotationSettings> | The default value is null |
Axes
Secondary axis collection for the stockChart.
Declaration
public List<StockChartStockChartAxis> Axes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartAxis> | The default value is null |
AxisLabelRender
Triggers before each axis label is rendered.
Declaration
public string AxisLabelRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Background
The background color of the stockChart that accepts value in hex and rgba as a valid CSS color string.
Declaration
public string Background { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Border
Options for customizing the color and width of the stockChart border.
Declaration
public StockChartChartBorder Border { get; set; }
Property Value
Type | Description |
---|---|
StockChartChartBorder | The default value is null |
ChartArea
Options for configuring the border and background of the stockChart area.
Declaration
public StockChartChartArea ChartArea { get; set; }
Property Value
Type | Description |
---|---|
StockChartChartArea | The default value is null |
Crosshair
Options for customizing the crosshair of the chart.
Declaration
public StockChartCrosshairSettings Crosshair { get; set; }
Property Value
Type | Description |
---|---|
StockChartCrosshairSettings | The default value is null |
DataSource
Specifies the DataSource for the stockChart. It can be an array of JSON objects or an instance of DataManager.
Declaration
public object DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
EnableCustomRange
Custom Range
Declaration
public bool EnableCustomRange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePeriodSelector
It specifies whether the periodSelector to be rendered in financial chart
Declaration
public bool EnablePeriodSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableSelector
It specifies whether the range navigator to be rendered in financial chart
Declaration
public bool EnableSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
ExportType
It specifies the types of Export types in financial chart.
Declaration
public object ExportType { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Height
The height of the stockChart as a string accepts input both as '100px' or '100%'. If specified as '100%, stockChart renders to the full height of its parent element.
Declaration
public string Height { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
Indicators
Defines the collection of technical indicators, that are used in financial markets.
Declaration
public List<StockChartStockChartIndicator> Indicators { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartIndicator> | The default value is null |
IndicatorType
It specifies the types of indicators in financial chart.
Declaration
public object IndicatorType { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
IsMultiSelect
If set true, enables the multi selection in chart. It requires selectionMode
to be Point
| Series
| or Cluster
.
Declaration
public bool IsMultiSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
IsSelect
If set true, enables the animation in chart.
Declaration
public bool IsSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
IsTransposed
It specifies whether the stockChart should be render in transposed manner or not.
Declaration
public bool IsTransposed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
LegendClick
Triggers after click on legend.
Declaration
public string LegendClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
LegendRender
Triggers before the legend is rendered.
Declaration
public string LegendRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
LegendSettings
Options for customizing the legend of the stockChart.
Declaration
public StockChartStockChartLegendSettings LegendSettings { get; set; }
Property Value
Type | Description |
---|---|
StockChartStockChartLegendSettings | The default value is null |
Load
Triggers before the range navigator rendering.
Declaration
public string Load { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Loaded
Triggers after the range navigator rendering.
Declaration
public string Loaded { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Margin
Options to customize left, right, top and bottom margins of the stockChart.
Declaration
public StockChartChartMargin Margin { get; set; }
Property Value
Type | Description |
---|---|
StockChartChartMargin | The default value is null |
OnZooming
Triggers after the zoom selection is completed.
Declaration
public string OnZooming { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Periods
To configure period selector options.
Declaration
public List<StockChartStockChartPeriod> Periods { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartPeriod> | The default value is null |
PointClick
Triggers on point click.
Declaration
public string PointClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
PointMove
Triggers on point move.
Declaration
public string PointMove { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
PrimaryXAxis
Options to configure the horizontal axis.
Declaration
public StockChartPrimaryXAxis PrimaryXAxis { get; set; }
Property Value
Type | Description |
---|---|
StockChartPrimaryXAxis | The default value is null |
PrimaryYAxis
Options to configure the vertical axis.
Declaration
public StockChartPrimaryYAxis PrimaryYAxis { get; set; }
Property Value
Type | Description |
---|---|
StockChartPrimaryYAxis | The default value is null |
RangeChange
Triggers if the range is changed
Declaration
public string RangeChange { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Rows
Options to split stockChart into multiple plotting areas horizontally. Each object in the collection represents a plotting area in the stockChart.
Declaration
public List<StockChartStockChartRow> Rows { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartRow> | The default value is null |
SelectedDataIndexes
Specifies the point indexes to be selected while loading a chart.
It requires selectionMode
to be Point
| Series
| or Cluster
.
Declaration
public List<StockChartStockChartSelectedDataIndex> SelectedDataIndexes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartSelectedDataIndex> | The default value is null |
SelectionMode
Specifies whether series or data point has to be selected. They are, none: Disables the selection. series: selects a series. point: selects a point. cluster: selects a cluster of point dragXY: selects points by dragging with respect to both horizontal and vertical axes dragX: selects points by dragging with respect to horizontal axis. dragY: selects points by dragging with respect to vertical axis.
Declaration
public SelectionMode SelectionMode { get; set; }
Property Value
Type | Description |
---|---|
SelectionMode | The default value is SelectionMode.None |
SelectorRender
Triggers before render the selector
Declaration
public string SelectorRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Series
The configuration for series in the stockChart.
Declaration
public List<StockChartStockChartSeries> Series { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockChartSeries> | The default value is null |
SeriesRender
Triggers before the series is rendered.
Declaration
public string SeriesRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SeriesType
It specifies the types of series in financial chart.
Declaration
public object SeriesType { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
StockChartMouseClick
Triggers on clicking the stock chart.
Declaration
public string StockChartMouseClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockChartMouseDown
Triggers on mouse down.
Declaration
public string StockChartMouseDown { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockChartMouseLeave
Triggers when cursor leaves the chart.
Declaration
public string StockChartMouseLeave { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockChartMouseMove
Triggers on hovering the stock chart.
Declaration
public string StockChartMouseMove { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockChartMouseUp
Triggers on mouse up.
Declaration
public string StockChartMouseUp { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockEventRender
Triggers before the series is rendered.
Declaration
public string StockEventRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
StockEvents
The configuration for stock events in the stockChart.
Declaration
public List<StockChartStockEvent> StockEvents { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.EJ2.Charts.StockChartStockEvent> | The default value is null |
Theme
Specifies the theme for the stockChart.
Declaration
public ChartTheme Theme { get; set; }
Property Value
Type | Description |
---|---|
ChartTheme | The default value is ChartTheme.Material |
Title
Title of the chart
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
TitleStyle
Options for customizing the title of the Chart.
Declaration
public StockChartTitleStyle TitleStyle { get; set; }
Property Value
Type | Description |
---|---|
StockChartTitleStyle | The default value is null |
Tooltip
Options for customizing the tooltip of the chart.
Declaration
public StockChartStockTooltipSettings Tooltip { get; set; }
Property Value
Type | Description |
---|---|
StockChartStockTooltipSettings | The default value is null |
TooltipRender
Triggers before the tooltip for series is rendered.
Declaration
public string TooltipRender { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TrendlineType
It specifies the types of trendline types in financial chart.
Declaration
public object TrendlineType { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Width
The width of the stockChart as a string accepts input as both like '100px' or '100%'. If specified as '100%, stockChart renders to the full width of its parent element.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ZoomSettings
Options to enable the zooming feature in the chart.
Declaration
public StockChartZoomSettings ZoomSettings { get; set; }
Property Value
Type | Description |
---|---|
StockChartZoomSettings | The default value is null |