Class ChartMarkerSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ChartMarkerSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartMarkerSettingsBuilder : ControlBuilder
Constructors
ChartMarkerSettingsBuilder()
Declaration
public ChartMarkerSettingsBuilder()
ChartMarkerSettingsBuilder(ChartMarkerSettings)
Declaration
public ChartMarkerSettingsBuilder(ChartMarkerSettings 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 ChartMarkerSettingsBuilder AllowHighlight(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Border(ChartTrendLineMarkerBorder)
Options for customizing the border of a marker, including setting the border's width and color.
Declaration
public ChartMarkerSettingsBuilder Border(ChartTrendLineMarkerBorder value)
Parameters
Returns
Border(Action<ChartBorderBuilder>)
Declaration
public ChartMarkerSettingsBuilder Border(Action<ChartBorderBuilder> border)
Parameters
Returns
DataLabel(ChartDataLabelSettings)
The dataLabel
property can be used to show the data label and customize its position and styling.
Declaration
public ChartMarkerSettingsBuilder DataLabel(ChartDataLabelSettings value)
Parameters
Returns
DataLabel(Action<ChartDataLabelSettingsBuilder>)
Declaration
public ChartMarkerSettingsBuilder DataLabel(Action<ChartDataLabelSettingsBuilder> 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 ChartMarkerSettingsBuilder Fill(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Height(Double)
Specifies the height of the marker in pixels.
Declaration
public ChartMarkerSettingsBuilder 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 ChartMarkerSettingsBuilder 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 ChartMarkerSettingsBuilder 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 ChartMarkerSettingsBuilder 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 ChartMarkerSettingsBuilder 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 ChartMarkerSettingsBuilder Shape(ChartShape value)
Parameters
Returns
Visible(Boolean)
If set to true, this enables the marker for the series.
Declaration
public ChartMarkerSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Width(Double)
Specifies the width of the marker in pixels.
Declaration
public ChartMarkerSettingsBuilder Width(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns