Class StockChartCrosshairSettings
Inheritance
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChartCrosshairSettings : EJTagHelper
Constructors
StockChartCrosshairSettings()
Declaration
public StockChartCrosshairSettings()
Properties
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
DashArray
Specifies the pattern of dashes and gaps used to stroke the crosshair line.
Declaration
public string DashArray { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Enable
If set to true, the crosshair line becomes visible.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
HorizontalLineColor
The color of the horizontal crosshair line accepts values in hex and rgba as valid CSS color strings.
Declaration
public string HorizontalLineColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Line
The line
property allows defining the appearance of the crosshair line, including its color and width.
Declaration
public StockChartCrosshairLine Line { get; set; }
Property Value
Type | Description |
---|---|
StockChartCrosshairLine | The default value is null |
LineType
Specifies the line type for the crosshair. The available modes are: None: Both vertical and horizontal crosshair lines are hidden. Both: Displays both the vertical and horizontal crosshair lines. Vertical: Shows only the vertical crosshair line. Horizontal: Shows only the horizontal crosshair line.
Declaration
public LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
LineType | The default value is LineType.Both |
Opacity
Specifies the opacity level for the crosshair, which controls its transparency.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
SnapToData
If set to true
, the horizontal crosshair snaps to the nearest data point.
Declaration
public bool SnapToData { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
VerticalLineColor
The color of the vertical crosshair line accepts values in hex and rgba as valid CSS color strings.
Declaration
public string VerticalLineColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |