HtmlForgeX

API Reference

Class

ApexDataLabelsOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents data labels configuration options for ApexCharts.

Inheritance

  • Object
  • ApexDataLabelsOptions

Constructors

public ApexDataLabelsOptions() #

Methods

public ApexDataLabelsOptions Anchor(ApexTextAnchor anchor) #
Returns: ApexDataLabelsOptions

Sets the text anchor position.

Parameters

anchor HtmlForgeX.ApexTextAnchor requiredposition: 0
public ApexDataLabelsOptions Enable(Boolean enabled) #
Returns: ApexDataLabelsOptions

Enables or disables data labels.

Parameters

enabled System.Boolean requiredposition: 0
public ApexDataLabelsOptions Offset(Int32 x, Int32 y) #
Returns: ApexDataLabelsOptions

Sets the offset position.

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
public ApexDataLabelsOptions SetFormatter(String formatter) #
Returns: ApexDataLabelsOptions

Sets a custom formatter function.

Parameters

formatter System.String requiredposition: 0
public ApexDataLabelsOptions SetStyle(Action<ApexTextStyle> configure) #
Returns: ApexDataLabelsOptions

Configures the label style.

Parameters

configure System.Action{HtmlForgeX.ApexTextStyle} requiredposition: 0

Properties

public Nullable<Boolean> Enabled { get; set; } #
JsonPropertyName("enabled")

Gets or sets whether data labels are enabled.

public Nullable<ApexTextAnchor> TextAnchor { get; set; } #
JsonPropertyName("textAnchor") JsonConverter(typeof(ApexEnumConverter<ApexTextAnchor>))

Gets or sets the text anchor position.

public ApexTextStyle Style { get; set; } #
JsonPropertyName("style")

Gets or sets the style configuration.

public Nullable<Int32> OffsetX { get; set; } #
JsonPropertyName("offsetX")

Gets or sets the offset X position.

public Nullable<Int32> OffsetY { get; set; } #
JsonPropertyName("offsetY")

Gets or sets the offset Y position.

public String Formatter { get; set; } #
JsonPropertyName("formatter")

Gets or sets the formatter function as a string.