Class StockChartStockChartSeries
Inheritance
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
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
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
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
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
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
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
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
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
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
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
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
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
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
public bool EnableTooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is true |
Fill
Declaration
public string Fill { get; set; }
Property Value
| Type |
|---|
| System.String |
High
The DataSource field that contains the high value of y It is applicable for series and technical indicators
Declaration
public string High { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
LastValueLabel
Options for customizing and displaying the last value in the series.
Declaration
public StockChartLastValueLabelSettings LastValueLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| StockChartLastValueLabelSettings | The default value is null |
LegendImageUrl
The URL for the Image that is to be displayed as a Legend icon. It requires legendShape value to be an Image.
Declaration
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
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
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
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
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
Opacity
The opacity of the series.
Declaration
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
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
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
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
public string SelectionStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
ShowNearestTooltip
Enables or disables the display of tooltips for the nearest data point to the cursor for series.
Declaration
public bool ShowNearestTooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is true |
TooltipMappingName
The provided value will be considered as a Tooltip name
Declaration
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
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
public ChartSeriesType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartSeriesType | The default value is ChartSeriesType.Candle |
Visible
Specifies the visibility of series.
Declaration
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
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
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
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
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
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
public string YName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |