menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class ChartAnnotationBuilder

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

    Constructors

    ChartAnnotationBuilder()

    Declaration
    public ChartAnnotationBuilder()

    ChartAnnotationBuilder(List<ChartAnnotation>)

    Declaration
    public ChartAnnotationBuilder(List<ChartAnnotation> collection)
    Parameters
    Type Name Description
    System.Collections.Generic.List<ChartAnnotation> collection

    Methods

    Accessibility(ChartAnnotationSettingsAccessibility)

    Options to improve accessibility for chart annotation elements.

    Declaration
    public ChartAnnotationBuilder Accessibility(ChartAnnotationSettingsAccessibility accessibility)
    Parameters
    Type Name Description
    ChartAnnotationSettingsAccessibility accessibility
    Returns
    Type
    ChartAnnotationBuilder

    Accessibility(Action<ChartAccessibilityBuilder>)

    Declaration
    public ChartAnnotationBuilder Accessibility(Action<ChartAccessibilityBuilder> accessibility)
    Parameters
    Type Name Description
    System.Action<ChartAccessibilityBuilder> accessibility
    Returns
    Type
    ChartAnnotationBuilder

    Add()

    Declaration
    public void Add()

    Content(String)

    The content of the annotation, which also accepts the ID of the custom element.

    Declaration
    public ChartAnnotationBuilder Content(string content)
    Parameters
    Type Name Description
    System.String content
    Returns
    Type
    ChartAnnotationBuilder

    CoordinateUnits(Units)

    Specifies the coordinate units of the annotation. The options are: Pixel - Renders the annotation based on x and y pixel values. Point - Renders the annotation based on x and y axis values.

    Declaration
    public ChartAnnotationBuilder CoordinateUnits(Units coordinateUnits)
    Parameters
    Type Name Description
    Units coordinateUnits
    Returns
    Type
    ChartAnnotationBuilder

    Description(String)

    A description for the annotation that provides additional information about its content for screen readers.

    Declaration
    public ChartAnnotationBuilder Description(string description)
    Parameters
    Type Name Description
    System.String description
    Returns
    Type
    ChartAnnotationBuilder

    HorizontalAlignment(Alignment)

    Specifies the alignment of the annotation. The options are: Near - Aligns the annotation element to the left side. Far - Aligns the annotation element to the right side. Center - Aligns the annotation element to the midpoint.

    Declaration
    public ChartAnnotationBuilder HorizontalAlignment(Alignment horizontalAlignment)
    Parameters
    Type Name Description
    Alignment horizontalAlignment
    Returns
    Type
    ChartAnnotationBuilder

    Region(Regions)

    Specifies the regions of the annotation. The options are: Chart - Renders the annotation based on chart coordinates. Series - Renders the annotation based on series coordinates.

    Declaration
    public ChartAnnotationBuilder Region(Regions region)
    Parameters
    Type Name Description
    Regions region
    Returns
    Type
    ChartAnnotationBuilder

    VerticalAlignment(Position)

    Specifies the position of the annotation. The options are Top - Aligns the annotation element to the top side. Bottom - Aligns the annotation element to the bottom side. Middle - Aligns the annotation element to the midpoint.

    Declaration
    public ChartAnnotationBuilder VerticalAlignment(Position verticalAlignment)
    Parameters
    Type Name Description
    Position verticalAlignment
    Returns
    Type
    ChartAnnotationBuilder

    X(Object)

    If coordinateUnit is set to Pixel, x specifies the pixel value. If coordinateUnit is set to Point, x specifies the axis value.

    Declaration
    public ChartAnnotationBuilder X(object x)
    Parameters
    Type Name Description
    System.Object x
    Returns
    Type
    ChartAnnotationBuilder

    XAxisName(String)

    The name of the horizontal axis associated with the annotation. Requires the axes of the chart.

    Declaration
    public ChartAnnotationBuilder XAxisName(string xAxisName)
    Parameters
    Type Name Description
    System.String xAxisName
    Returns
    Type
    ChartAnnotationBuilder

    Y(Double)

    If coordinateUnit is set to Pixel, y specifies the pixel value. If coordinateUnit is set to Point, y specifies the axis value.

    Declaration
    public ChartAnnotationBuilder Y(double y)
    Parameters
    Type Name Description
    System.Double y
    Returns
    Type
    ChartAnnotationBuilder

    Y(String)

    If coordinateUnit is set to Pixel, y specifies the pixel value. If coordinateUnit is set to Point, y specifies the axis value.

    Declaration
    public ChartAnnotationBuilder Y(string y)
    Parameters
    Type Name Description
    System.String y
    Returns
    Type
    ChartAnnotationBuilder

    YAxisName(String)

    The name of the vertical axis associated with the annotation. Requires the axes of the chart.

    Declaration
    public ChartAnnotationBuilder YAxisName(string yAxisName)
    Parameters
    Type Name Description
    System.String yAxisName
    Returns
    Type
    ChartAnnotationBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved