Class StockChartModel
Interface for a class StockChart
Inheritance
Implements
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class StockChartModel : Object, IEquatable<StockChartModel>
Constructors
StockChartModel()
Declaration
public StockChartModel()
Properties
Annotations
The configuration for annotation in chart.
Declaration
public List<StockChartAnnotationSettingsModel> Annotations { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartAnnotationSettingsModel> |
Axes
Secondary axis collection for the stockChart.
Declaration
public List<StockChartAxisModel> Axes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartAxisModel> |
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 |
Border
Options for customizing the color and width of the stockChart border.
Declaration
public StockChartBorderModel Border { get; set; }
Property Value
Type | Description |
---|---|
StockChartBorderModel |
ChartArea
Options for configuring the border and background of the stockChart area.
Declaration
public StockChartAreaModel ChartArea { get; set; }
Property Value
Type | Description |
---|---|
StockChartAreaModel |
Crosshair
Options for customizing the crosshair of the chart.
Declaration
public CrosshairSettingsModel Crosshair { get; set; }
Property Value
Type | Description |
---|---|
CrosshairSettingsModel |
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 |
EnableCustomRange
Custom Range
Declaration
public bool EnableCustomRange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnablePeriodSelector
It specifies whether the periodSelector to be rendered in financial chart
Declaration
public bool EnablePeriodSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnablePersistence
Enable or disable persisting component's state between page reloads.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
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
public bool EnableSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ExportType
It specifies the types of Export types in financial chart.
Declaration
public List<ExportType> ExportType { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ExportType> |
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 |
Indicators
Defines the collection of technical indicators, that are used in financial markets
Declaration
public List<StockChartIndicatorModel> Indicators { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartIndicatorModel> |
IndicatorType
It specifies the types of indicators in financial chart.
Declaration
public List<TechnicalIndicators> IndicatorType { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<TechnicalIndicators> |
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 |
IsSelect
If set true, enables the animation in chart.
Declaration
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
public bool IsTransposed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Load
Triggers before the range navigator rendering
Declaration
public EventCallback<object> Load { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Loaded
Triggers after the range navigator rendering
Declaration
public EventCallback<object> Loaded { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
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 |
Margin
Options to customize left, right, top and bottom margins of the stockChart.
Declaration
public StockMarginModel Margin { get; set; }
Property Value
Type | Description |
---|---|
StockMarginModel |
OnZooming
Triggers after the zoom selection is completed.
Declaration
public EventCallback<object> OnZooming { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
Periods
To configure period selector options.
Declaration
public List<PeriodsModel> Periods { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<PeriodsModel> |
PointClick
Triggers on point click.
Declaration
public EventCallback<object> PointClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
PointMove
Triggers on point move.
Declaration
public EventCallback<object> PointMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
PrimaryXAxis
Options to configure the horizontal axis.
Declaration
public StockChartAxisModel PrimaryXAxis { get; set; }
Property Value
Type | Description |
---|---|
StockChartAxisModel |
PrimaryYAxis
Options to configure the vertical axis.
Declaration
public StockChartAxisModel PrimaryYAxis { get; set; }
Property Value
Type | Description |
---|---|
StockChartAxisModel |
RangeChange
Triggers if the range is changed
Declaration
public EventCallback<object> RangeChange { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
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<StockChartRowModel> Rows { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartRowModel> |
SelectedDataIndexes
Specifies the point indexes to be selected while loading a chart.
It requires selectionMode
to be Point
| Series
| or Cluster
.
Declaration
public List<StockChartIndexesModel> SelectedDataIndexes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockChartIndexesModel> |
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 |
Series
The configuration for series in the stockChart.
Declaration
public List<StockSeriesModel> Series { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockSeriesModel> |
SeriesType
It specifies the types of series in financial chart.
Declaration
public List<ChartSeriesType> SeriesType { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<ChartSeriesType> |
StockChartMouseClick
Triggers on clicking the stock chart.
Declaration
public EventCallback<object> StockChartMouseClick { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
StockChartMouseDown
Triggers on mouse down.
Declaration
public EventCallback<object> StockChartMouseDown { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
StockChartMouseLeave
Triggers when cursor leaves the chart.
Declaration
public EventCallback<object> StockChartMouseLeave { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
StockChartMouseMove
Triggers on hovering the stock chart.
Declaration
public EventCallback<object> StockChartMouseMove { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
StockChartMouseUp
Triggers on mouse up.
Declaration
public EventCallback<object> StockChartMouseUp { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> |
StockEvents
The configuration for stock events in the stockChart.
Declaration
public List<StockEventsSettingsModel> StockEvents { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<StockEventsSettingsModel> |
Theme
Specifies the theme for the stockChart.
Declaration
public ChartTheme Theme { get; set; }
Property Value
Type | Description |
---|---|
ChartTheme |
Title
Title of the chart
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TitleStyle
Options for customizing the title of the Chart.
Declaration
public StockChartFontModel TitleStyle { get; set; }
Property Value
Type | Description |
---|---|
StockChartFontModel |
Tooltip
Options for customizing the tooltip of the chart.
Declaration
public TooltipSettingsModel Tooltip { get; set; }
Property Value
Type | Description |
---|---|
TooltipSettingsModel |
TrendlineType
It specifies the types of trendline types in financial chart.
Declaration
public List<TrendlineTypes> TrendlineType { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<TrendlineTypes> |
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 |
ZoomSettings
Options to enable the zooming feature in the chart.
Declaration
public ZoomSettingsModel ZoomSettings { get; set; }
Property Value
Type | Description |
---|---|
ZoomSettingsModel |
Methods
Equals(StockChartModel)
Returns a boolean by comparing with stockChartModel
Declaration
public bool Equals(StockChartModel stockChartModel)
Parameters
Type | Name | Description |
---|---|---|
StockChartModel | stockChartModel |
Returns
Type | Description |
---|---|
System.Boolean |