Class ChartCommonMarker
Specifies the marker configuration of the chart.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartCommonMarker : ChartSubComponent, ISubcomponentTracker, IChartElement
Constructors
ChartCommonMarker()
Declaration
public ChartCommonMarker()
Properties
AllowHighlight
Gets or sets a value that allows or disallows marker highlight for the chart tooltip.
Declaration
public bool AllowHighlight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean indicating if marker highlight is allowed. The default value is true. |
Remarks
This property determines whether the marker can be highlighted when the tooltip is displayed.
Border
Gets or sets the options to customize the border of the marker.
Declaration
public ChartMarkerBorder Border { get; set; }
Property Value
Type | Description |
---|---|
ChartMarkerBorder | An instance of ChartMarkerBorder that specifies the border properties of the marker, such as color and width. |
Remarks
Use this property to define the appearance of the marker's border, allowing customization to suit the chart's style and enhance visibility.
DataLabel
Gets or sets the options to customize the data label for the series.
Declaration
public ChartDataLabel DataLabel { get; set; }
Property Value
Type | Description |
---|---|
ChartDataLabel | An instance of ChartDataLabel that allows customization of the data label properties, including visibility, color, and format. |
Remarks
Data labels provide additional information about data points and can be customized for display, enhancing the interpretability of the chart.
Fill
Gets or sets the fill color of the marker.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the fill color of the marker. |
Remarks
This property is used to change the fill color of the marker on the chart.
Height
Gets or sets the height of the marker.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double representing the height of the marker. The default value is 5. |
Remarks
This property is used to change the height of the marker on the chart.
ImageUrl
Gets or sets the URL path for the image.
Declaration
public string ImageUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the URL of the image to be used as the marker. |
Remarks
Specifying the URL allows for the use of custom images as markers, enhancing the visual representation of data points on the chart.
IsFilled
Gets or sets a value indicating whether the marker is filled for the series.
Declaration
public bool IsFilled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
This property determines whether the marker is filled with color or left as an outline. Setting this to true will fill the marker, while setting it to false will leave it unfilled.
Offset
Gets or sets the options to customize the offset of the marker.
Declaration
public ChartMarkerOffset Offset { get; set; }
Property Value
Type | Description |
---|---|
ChartMarkerOffset | An instance of ChartMarkerOffset that specifies the horizontal and vertical offsets for positioning the marker. |
Remarks
This property allows you to adjust the placement of markers by specifying offsets relative to their default position for better alignment and presentation.
Opacity
Gets or sets the opacity of the marker shape.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double representing the opacity of the marker shape. Range is from 0 (fully transparent) to 1 (fully opaque). The default value is 1. |
Remarks
This property is used to set the transparency level of the marker on the chart.
Shape
Gets or sets the shape of the marker.
Declaration
public ChartShape Shape { get; set; }
Property Value
Type | Description |
---|---|
ChartShape | A ChartShape enumeration value that defines the shape of the marker. The default value is Auto. |
Remarks
This property allows users to specify the visual representation of the marker on the chart, enabling customization of the marker's appearance based on the selected shape.
Visible
Gets or sets a value indicating whether the marker is visible for the series.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
This property controls whether the marker is displayed on the chart. Setting this to true will make the marker visible, while setting it to false will hide it.
Width
Gets or sets the width of the marker.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double representing the width of the marker. The default value is 5. |
Remarks
This property is used to change the height of the marker on the chart.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()