Class StockChartMarkerSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
StockChartMarkerSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class StockChartMarkerSettingsBuilder : ControlBuilder
Constructors
StockChartMarkerSettingsBuilder()
Declaration
public StockChartMarkerSettingsBuilder()
StockChartMarkerSettingsBuilder(StockChartMarkerSettings)
Declaration
public StockChartMarkerSettingsBuilder(StockChartMarkerSettings model)
Parameters
Methods
AllowHighlight(Boolean)
The trackball is enabled by default when the mouse moves but disabling it can be achieved by setting the marker's allowHighlight
property to 'false'.
Declaration
public StockChartMarkerSettingsBuilder AllowHighlight(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Border(StockChartBorder)
Options for customizing the border of a marker, including setting the border's width and color.
Declaration
public StockChartMarkerSettingsBuilder Border(StockChartBorder value)
Parameters
Returns
Border(Action<StockChartBorderBuilder>)
Declaration
public StockChartMarkerSettingsBuilder Border(Action<StockChartBorderBuilder> border)
Parameters
Returns
DataLabel(StockChartDataLabelSettings)
The dataLabel
property can be used to show the data label and customize its position and styling.
Declaration
public StockChartMarkerSettingsBuilder DataLabel(StockChartDataLabelSettings value)
Parameters
Returns
DataLabel(Action<StockChartDataLabelSettingsBuilder>)
Declaration
public StockChartMarkerSettingsBuilder DataLabel(Action<StockChartDataLabelSettingsBuilder> dataLabel)
Parameters
Returns
Fill(String)
The fill color of the marker, which accepts values in hex and rgba as valid CSS color strings. By default, it takes the series color.
Declaration
public StockChartMarkerSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Height(Double)
Specifies the height of the marker in pixels.
Declaration
public StockChartMarkerSettingsBuilder Height(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ImageUrl(String)
The URL for the image to be displayed as a marker. It requires the marker's shape
value to be Image
.
Note that the marker's shape
value must be Image
for this feature to work.
Declaration
public StockChartMarkerSettingsBuilder ImageUrl(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
IsFilled(Boolean)
If set to true, the marker will be filled with the series color.
Declaration
public StockChartMarkerSettingsBuilder IsFilled(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Offset(Object)
This property allows for the adjustment of the marker's position relative to its data point by specifying horizontal and vertical offsets.
Declaration
public StockChartMarkerSettingsBuilder Offset(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Opacity(Double)
Sets the opacity level for the marker, which controls its transparency.
Declaration
public StockChartMarkerSettingsBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Shape(ChartShape)
Configures the shape of the marker used in the series.
Available options are:
Circle - Circular shape for the marker.
Rectangle - Rectangular shape for the marker.
Triangle - Triangular shape for the marker.
Diamond - Diamond shape for the marker.
HorizontalLine - Marker as a horizontal line.
VerticalLine - Marker as a vertical line.
Pentagon - Pentagon shape for the marker.
InvertedTriangle - Inverted triangle shape for the marker.
Image - Custom image as the marker.
Star - Star shape fot the marker.
Declaration
public StockChartMarkerSettingsBuilder Shape(ChartShape value)
Parameters
Returns
Visible(Boolean)
If set to true, this enables the marker for the series.
Declaration
public StockChartMarkerSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Width(Double)
Specifies the width of the marker in pixels.
Declaration
public StockChartMarkerSettingsBuilder Width(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns