Class StockChart
Inheritance
System.Object
StockChart
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChart : EJTagHelper
Constructors
StockChart()
Declaration
Properties
Annotations
The configuration for annotation in chart.
Declaration
[HtmlAttributeName("annotations")]
public List<StockChartAnnotationSettings> Annotations { get; set; }
Property Value
Axes
Secondary axis collection for the stockChart.
Declaration
[HtmlAttributeName("axes")]
public List<StockChartStockChartAxis> Axes { get; set; }
Property Value
AxisLabelRender
Triggers before each axis label is rendered.
Declaration
[HtmlAttributeName("axisLabelRender")]
public string AxisLabelRender { get; set; }
Property Value
Type |
Description |
System.String |
|
Background
The background color of the stockChart that accepts value in hex and rgba as a valid CSS color string.
Declaration
[HtmlAttributeName("background")]
public string Background { get; set; }
Property Value
Type |
Description |
System.String |
|
Border
Options for customizing the color and width of the stockChart border.
Declaration
[HtmlAttributeName("border")]
public StockChartChartBorder Border { get; set; }
Property Value
ChartArea
Options for configuring the border and background of the stockChart area.
Declaration
[HtmlAttributeName("chartArea")]
public StockChartChartArea ChartArea { get; set; }
Property Value
ClassName
Declaration
protected override string ClassName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Crosshair
Options for customizing the crosshair of the chart.
Declaration
[HtmlAttributeName("crosshair")]
public StockChartCrosshairSettings Crosshair { get; set; }
Property Value
DataSource
Specifies the DataSource for the stockChart. It can be an array of JSON objects or an instance of DataManager.
Declaration
[HtmlAttributeName("dataSource")]
public object DataSource { get; set; }
Property Value
Type |
Description |
System.Object |
|
EnableCustomRange
Declaration
[HtmlAttributeName("enableCustomRange")]
public bool EnableCustomRange { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnablePeriodSelector
It specifies whether the periodSelector to be rendered in financial chart
Declaration
[HtmlAttributeName("enablePeriodSelector")]
public bool EnablePeriodSelector { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
[HtmlAttributeName("enablePersistence")]
public bool EnablePersistence { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
[HtmlAttributeName("enableRtl")]
public bool EnableRtl { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnableSelector
It specifies whether the range navigator to be rendered in financial chart
Declaration
[HtmlAttributeName("enableSelector")]
public bool EnableSelector { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ExportType
It specifies the types of Export types in financial chart.
Declaration
[HtmlAttributeName("exportType")]
public object ExportType { get; set; }
Property Value
Type |
Description |
System.Object |
|
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
[HtmlAttributeName("height")]
public string Height { get; set; }
Property Value
Type |
Description |
System.String |
|
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and
accepts n number of attributes in a key-value pair format.
Declaration
[HtmlAttributeName("htmlAttributes")]
public object HtmlAttributes { get; set; }
Property Value
Type |
Description |
System.Object |
|
Indicators
Defines the collection of technical indicators, that are used in financial markets.
Declaration
[HtmlAttributeName("indicators")]
public List<StockChartStockChartIndicator> Indicators { get; set; }
Property Value
IndicatorType
It specifies the types of indicators in financial chart.
Declaration
[HtmlAttributeName("indicatorType")]
public object IndicatorType { get; set; }
Property Value
Type |
Description |
System.Object |
|
IsFor
Declaration
protected override bool IsFor { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsMultiSelect
If set true, enables the multi selection in chart. It requires selectionMode
to be Point
| Series
| or Cluster
.
Declaration
[HtmlAttributeName("isMultiSelect")]
public bool IsMultiSelect { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsSelect
If set true, enables the animation in chart.
Declaration
[HtmlAttributeName("isSelect")]
public bool IsSelect { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsTransposed
It specifies whether the stockChart should be render in transposed manner or not.
Declaration
[HtmlAttributeName("isTransposed")]
public bool IsTransposed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LegendClick
Triggers after click on legend.
Declaration
[HtmlAttributeName("legendClick")]
public string LegendClick { get; set; }
Property Value
Type |
Description |
System.String |
|
LegendRender
Triggers before the legend is rendered.
Declaration
[HtmlAttributeName("legendRender")]
public string LegendRender { get; set; }
Property Value
Type |
Description |
System.String |
|
LegendSettings
Options for customizing the legend of the stockChart.
Declaration
[HtmlAttributeName("legendSettings")]
public StockChartStockChartLegendSettings LegendSettings { get; set; }
Property Value
Load
Triggers before the range navigator rendering.
Declaration
[HtmlAttributeName("load")]
public string Load { get; set; }
Property Value
Type |
Description |
System.String |
|
Loaded
Triggers after the range navigator rendering.
Declaration
[HtmlAttributeName("loaded")]
public string Loaded { get; set; }
Property Value
Type |
Description |
System.String |
|
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
[HtmlAttributeName("locale")]
public string Locale { get; set; }
Property Value
Type |
Description |
System.String |
|
Margin
Options to customize left, right, top and bottom margins of the stockChart.
Declaration
[HtmlAttributeName("margin")]
public StockChartChartMargin Margin { get; set; }
Property Value
NameSpace
Declaration
protected override string NameSpace { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
OnZooming
Triggers after the zoom selection is completed.
Declaration
[HtmlAttributeName("onZooming")]
public string OnZooming { get; set; }
Property Value
Type |
Description |
System.String |
|
Periods
To configure period selector options.
Declaration
[HtmlAttributeName("periods")]
public List<StockChartStockChartPeriod> Periods { get; set; }
Property Value
PointClick
Declaration
[HtmlAttributeName("pointClick")]
public string PointClick { get; set; }
Property Value
Type |
Description |
System.String |
|
PointMove
Declaration
[HtmlAttributeName("pointMove")]
public string PointMove { get; set; }
Property Value
Type |
Description |
System.String |
|
PrimaryXAxis
Options to configure the horizontal axis.
Declaration
[HtmlAttributeName("primaryXAxis")]
public StockChartPrimaryXAxis PrimaryXAxis { get; set; }
Property Value
PrimaryYAxis
Options to configure the vertical axis.
Declaration
[HtmlAttributeName("primaryYAxis")]
public StockChartPrimaryYAxis PrimaryYAxis { get; set; }
Property Value
RangeChange
Triggers if the range is changed
Declaration
[HtmlAttributeName("rangeChange")]
public string RangeChange { get; set; }
Property Value
Type |
Description |
System.String |
|
Rows
Options to split stockChart into multiple plotting areas horizontally.
Each object in the collection represents a plotting area in the stockChart.
Declaration
[HtmlAttributeName("rows")]
public List<StockChartStockChartRow> Rows { get; set; }
Property Value
SelectedDataIndexes
Specifies the point indexes to be selected while loading a chart.
It requires selectionMode
to be Point
| Series
| or Cluster
.
Declaration
[HtmlAttributeName("selectedDataIndexes")]
public List<StockChartStockChartSelectedDataIndex> SelectedDataIndexes { get; set; }
Property Value
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
[HtmlAttributeName("selectionMode")]
public SelectionMode SelectionMode { get; set; }
Property Value
SelectorRender
Triggers before render the selector
Declaration
[HtmlAttributeName("selectorRender")]
public string SelectorRender { get; set; }
Property Value
Type |
Description |
System.String |
|
Series
The configuration for series in the stockChart.
Declaration
[HtmlAttributeName("series")]
public List<StockChartStockChartSeries> Series { get; set; }
Property Value
SeriesRender
Triggers before the series is rendered.
Declaration
[HtmlAttributeName("seriesRender")]
public string SeriesRender { get; set; }
Property Value
Type |
Description |
System.String |
|
SeriesType
It specifies the types of series in financial chart.
Declaration
[HtmlAttributeName("seriesType")]
public object SeriesType { get; set; }
Property Value
Type |
Description |
System.Object |
|
StockChartMouseClick
Triggers on clicking the stock chart.
Declaration
[HtmlAttributeName("stockChartMouseClick")]
public string StockChartMouseClick { get; set; }
Property Value
Type |
Description |
System.String |
|
StockChartMouseDown
Declaration
[HtmlAttributeName("stockChartMouseDown")]
public string StockChartMouseDown { get; set; }
Property Value
Type |
Description |
System.String |
|
StockChartMouseLeave
Triggers when cursor leaves the chart.
Declaration
[HtmlAttributeName("stockChartMouseLeave")]
public string StockChartMouseLeave { get; set; }
Property Value
Type |
Description |
System.String |
|
StockChartMouseMove
Triggers on hovering the stock chart.
Declaration
[HtmlAttributeName("stockChartMouseMove")]
public string StockChartMouseMove { get; set; }
Property Value
Type |
Description |
System.String |
|
StockChartMouseUp
Declaration
[HtmlAttributeName("stockChartMouseUp")]
public string StockChartMouseUp { get; set; }
Property Value
Type |
Description |
System.String |
|
StockEventRender
Triggers before the series is rendered.
Declaration
[HtmlAttributeName("stockEventRender")]
public string StockEventRender { get; set; }
Property Value
Type |
Description |
System.String |
|
StockEvents
The configuration for stock events in the stockChart.
Declaration
[HtmlAttributeName("stockEvents")]
public List<StockChartStockEvent> StockEvents { get; set; }
Property Value
TagName
Declaration
protected override string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Theme
Specifies the theme for the stockChart.
Declaration
[HtmlAttributeName("theme")]
public ChartTheme Theme { get; set; }
Property Value
Title
Declaration
[HtmlAttributeName("title")]
public string Title { get; set; }
Property Value
Type |
Description |
System.String |
|
TitleStyle
Options for customizing the title of the Chart.
Declaration
[HtmlAttributeName("titleStyle")]
public StockChartTitleStyle TitleStyle { get; set; }
Property Value
Options for customizing the tooltip of the chart.
Declaration
[HtmlAttributeName("tooltip")]
public StockChartTooltipSettings Tooltip { get; set; }
Property Value
Triggers before the tooltip for series is rendered.
Declaration
[HtmlAttributeName("tooltipRender")]
public string TooltipRender { get; set; }
Property Value
Type |
Description |
System.String |
|
TrendlineType
It specifies the types of trendline types in financial chart.
Declaration
[HtmlAttributeName("trendlineType")]
public object TrendlineType { get; set; }
Property Value
Type |
Description |
System.Object |
|
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
[HtmlAttributeName("width")]
public string Width { get; set; }
Property Value
Type |
Description |
System.String |
|
ZoomSettings
Options to enable the zooming feature in the chart.
Declaration
[HtmlAttributeName("zoomSettings")]
public StockChartZoomSettings ZoomSettings { get; set; }
Property Value