menu

ASP.NET Core - EJ2

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

    Show / Hide Table of Contents

    Class StockChartMarkerSettingsBuilder

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

    Constructors

    StockChartMarkerSettingsBuilder()

    Declaration
    public StockChartMarkerSettingsBuilder()

    StockChartMarkerSettingsBuilder(StockChartMarkerSettings)

    Declaration
    public StockChartMarkerSettingsBuilder(StockChartMarkerSettings model)
    Parameters
    Type Name Description
    StockChartMarkerSettings 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 StockChartMarkerSettingsBuilder AllowHighlight(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    StockChartMarkerSettingsBuilder

    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
    Type Name Description
    StockChartBorder value
    Returns
    Type
    StockChartMarkerSettingsBuilder

    Border(Action<StockChartBorderBuilder>)

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

    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
    Type Name Description
    StockChartDataLabelSettings value
    Returns
    Type
    StockChartMarkerSettingsBuilder

    DataLabel(Action<StockChartDataLabelSettingsBuilder>)

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

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

    Height(Double)

    Specifies the height of the marker in pixels.

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

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

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

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

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

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

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

    Width(Double)

    Specifies the width of the marker in pixels.

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