Class ChartMarkerSettings
Inheritance
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartMarkerSettings : EJTagHelper
Constructors
ChartMarkerSettings()
Declaration
public ChartMarkerSettings()
Properties
AllowHighlight
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 bool AllowHighlight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Border
Options for customizing the border of a marker, including setting the border's width and color.
Declaration
public ChartTrendLineMarkerBorder Border { get; set; }
Property Value
Type | Description |
---|---|
ChartTrendLineMarkerBorder | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
DataLabel
The dataLabel
property can be used to show the data label and customize its position and styling.
Declaration
public ChartDataLabelSettings DataLabel { get; set; }
Property Value
Type | Description |
---|---|
ChartDataLabelSettings | The default value is null |
Fill
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 string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Height
Specifies the height of the marker in pixels.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
ImageUrl
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 beImage
for this feature to work.
Declaration
public string ImageUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
IsFilled
If set to true, the marker will be filled with the series color.
Declaration
public bool IsFilled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Offset
This property allows for the adjustment of the marker's position relative to its data point by specifying horizontal and vertical offsets.
Declaration
public object Offset { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Opacity
Sets the opacity level for the marker, which controls its transparency.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
Shape
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 ChartShape Shape { get; set; }
Property Value
Type | Description |
---|---|
ChartShape | The default value is null |
Visible
If set to true, this enables the marker for the series.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
Width
Specifies the width of the marker in pixels.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |