Class StockChartStockChartSeries
Inherited Members
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChartStockChartSeries : EJTagHelper
Constructors
StockChartStockChartSeries()
Declaration
public StockChartStockChartSeries()
Properties
Animation
Options to customizing animation for the series.
Declaration
[HtmlAttributeName("animation")]
public StockChartAnimation Animation { get; set; }
Property Value
Type | Description |
---|---|
StockChartAnimation | The default value is null |
BearFillColor
This property is used in stock charts to visualize the price movements in stock. It defines the color of the candle/point, when the opening price is less than the closing price.
Declaration
[HtmlAttributeName("bearFillColor")]
public string BearFillColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "#2ecd71" |
Border
Options to customizing the border of the series. This is applicable only for Column
and Bar
type series.
Declaration
[HtmlAttributeName("border")]
public StockChartSeriesBorder Border { get; set; }
Property Value
Type | Description |
---|---|
StockChartSeriesBorder | The default value is null |
BullFillColor
This property is used in financial charts to visualize the price movements in stock. It defines the color of the candle/point, when the opening price is higher than the closing price.
Declaration
[HtmlAttributeName("bullFillColor")]
public string BullFillColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "#e74c3d" |
CardinalSplineTension
It defines tension of cardinal spline types.
Declaration
[HtmlAttributeName("cardinalSplineTension")]
public double CardinalSplineTension { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0.5 |
Close
The DataSource field that contains the close value of y It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("close")]
public string Close { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
ColumnSpacing
To render the column series points with particular column spacing. It takes value from 0 - 1.
Declaration
[HtmlAttributeName("columnSpacing")]
public double ColumnSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
ColumnWidth
To render the column series points with particular column width. If the series type is histogram the default value is 1 otherwise 0.7.
Declaration
[HtmlAttributeName("columnWidth")]
public double ColumnWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is Double.NaN |
CornerRadius
To render the column series points with particular rounded corner.
Declaration
[HtmlAttributeName("cornerRadius")]
public StockChartCornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
StockChartCornerRadius | The default value is null |
DashArray
Defines the pattern of dashes and gaps to stroke the lines in Line
type series.
Declaration
[HtmlAttributeName("dashArray")]
public string DashArray { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "0" |
DataSource
Specifies the DataSource for the series. 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 | The default value is null |
EmptyPointSettings
options to customize the empty points in series.
Declaration
[HtmlAttributeName("emptyPointSettings")]
public StockChartEmptyPointSettings EmptyPointSettings { get; set; }
Property Value
Type | Description |
---|---|
StockChartEmptyPointSettings | The default value is null |
EnableSolidCandles
This property is applicable for candle series. It enables/disables to visually compare the current values with the previous values in stock.
Declaration
[HtmlAttributeName("enableSolidCandles")]
public bool EnableSolidCandles { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableTooltip
If set true, the Tooltip for series will be visible.
Declaration
[HtmlAttributeName("enableTooltip")]
public bool EnableTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Fill
The fill color for the series that accepts value in hex and rgba as a valid CSS color string. It also represents the color of the signal lines in technical indicators. For technical indicators, the default value is 'blue' and for series, it has null.
Declaration
[HtmlAttributeName("fill")]
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
High
The DataSource field that contains the high value of y It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("high")]
public string High { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
LegendImageUrl
The URL for the Image that is to be displayed as a Legend icon. It requires legendShape
value to be an Image
.
Declaration
[HtmlAttributeName("legendImageUrl")]
public string LegendImageUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
LegendShape
The shape of the legend. Each series has its own legend shape. They are Circle - Renders a circle. Rectangle - Renders a rectangle. Triangle - Renders a triangle. Diamond - Renders a diamond. Cross - Renders a cross. HorizontalLine - Renders a horizontalLine. VerticalLine - Renders a verticalLine. Pentagon - Renders a pentagon. InvertedTriangle - Renders a invertedTriangle. SeriesType -Render a legend shape based on series type. Image -Render a image.
Declaration
[HtmlAttributeName("legendShape")]
public LegendShape LegendShape { get; set; }
Property Value
Type | Description |
---|---|
LegendShape | The default value is LegendShape.SeriesType |
Low
The DataSource field that contains the low value of y It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("low")]
public string Low { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Marker
Options for displaying and customizing markers for individual points in a series.
Declaration
[HtmlAttributeName("marker")]
public StockChartSeriesMarker Marker { get; set; }
Property Value
Type | Description |
---|---|
StockChartSeriesMarker | The default value is null |
Name
The name of the series visible in legend.
Declaration
[HtmlAttributeName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Opacity
The opacity of the series.
Declaration
[HtmlAttributeName("opacity")]
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
Open
The DataSource field that contains the open value of y It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("open")]
public string Open { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
PointColorMapping
The DataSource field that contains the color value of point It is applicable for series
Declaration
[HtmlAttributeName("pointColorMapping")]
public string PointColorMapping { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Query
Specifies query to select data from DataSource. This property is applicable only when the DataSource is ej.DataManager
.
Declaration
[HtmlAttributeName("query")]
public string Query { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SelectionStyle
Custom style for the selected series or points.
Declaration
[HtmlAttributeName("selectionStyle")]
public string SelectionStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
TooltipMappingName
The provided value will be considered as a Tooltip name
Declaration
[HtmlAttributeName("tooltipMappingName")]
public string TooltipMappingName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Trendlines
Defines the collection of trendlines that are used to predict the trend
Declaration
[HtmlAttributeName("trendlines")]
public List<StockChartTrendlines> Trendlines { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartTrendlines> | The default value is null |
Type
The type of the series are Line Column Area Spline Hilo HiloOpenClose Candle
Declaration
[HtmlAttributeName("type")]
public ChartSeriesType Type { get; set; }
Property Value
Type | Description |
---|---|
ChartSeriesType | The default value is ChartSeriesType.Candle |
Visible
Specifies the visibility of series.
Declaration
[HtmlAttributeName("visible")]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Volume
Defines the data source field that contains the volume value in candle charts It is applicable for financial series and technical indicators
Declaration
[HtmlAttributeName("volume")]
public string Volume { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Width
The stroke width for the series that is applicable only for Line
type series.
It also represents the stroke width of the signal lines in technical indicators.
Declaration
[HtmlAttributeName("width")]
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
XAxisName
The name of the horizontal axis associated with the series. It requires axes
of the chart.
It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("xAxisName")]
public string XAxisName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
XName
The DataSource field that contains the x value. It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("xName")]
public string XName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
YAxisName
The name of the vertical axis associated with the series. It requires axes
of the chart.
It is applicable for series and technical indicators
Declaration
[HtmlAttributeName("yAxisName")]
public string YAxisName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
YName
The DataSource field that contains the y value.
Declaration
[HtmlAttributeName("yName")]
public string YName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |