menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartMarkerSettingsBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartMarkerSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChartMarkerSettingsBuilder
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChartMarkerSettingsBuilder : ControlBuilder

    Constructors

    ChartMarkerSettingsBuilder()

    Declaration
    public ChartMarkerSettingsBuilder()

    ChartMarkerSettingsBuilder(ChartMarkerSettings)

    Declaration
    public ChartMarkerSettingsBuilder(ChartMarkerSettings model)
    Parameters
    Type Name Description
    ChartMarkerSettings model

    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
    Type
    ChartMarkerSettingsBuilder

    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
    Type Name Description
    ChartTrendLineMarkerBorder value
    Returns
    Type
    ChartMarkerSettingsBuilder

    Border(Action<ChartBorderBuilder>)

    Declaration
    public ChartMarkerSettingsBuilder Border(Action<ChartBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<ChartBorderBuilder> border
    Returns
    Type
    ChartMarkerSettingsBuilder

    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
    Type Name Description
    ChartDataLabelSettings value
    Returns
    Type
    ChartMarkerSettingsBuilder

    DataLabel(Action<ChartDataLabelSettingsBuilder>)

    Declaration
    public ChartMarkerSettingsBuilder DataLabel(Action<ChartDataLabelSettingsBuilder> dataLabel)
    Parameters
    Type Name Description
    System.Action<ChartDataLabelSettingsBuilder> dataLabel
    Returns
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    Height(Double)

    Specifies the height of the marker in pixels.

    Declaration
    public ChartMarkerSettingsBuilder Height(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    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
    Type Name Description
    ChartShape value
    Returns
    Type
    ChartMarkerSettingsBuilder

    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
    Type
    ChartMarkerSettingsBuilder

    Width(Double)

    Specifies the width of the marker in pixels.

    Declaration
    public ChartMarkerSettingsBuilder Width(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartMarkerSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved