Class ChartStackLabelSettings
Inheritance
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartStackLabelSettings : EJTagHelper
Constructors
ChartStackLabelSettings()
Declaration
public ChartStackLabelSettings()
Properties
Angle
Specifies the rotation angle for the stack labels. This property allows to rotate the stack labels to a specific angle (in degrees).
Declaration
public double Angle { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Border
Configures the border appearance for the stack labels.
For rounded corners to appear, both the rx
and ry
properties must be set, and the border
property should also be configured with a width and color.
Declaration
public object Border { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Fill
The background color of the stack labels. Accepts valid CSS color strings, including hex and RGBA values.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
Font
Customizes the appearance of the stack label text. Options include font size, color, style, weight, and family. Customizing these properties allows to ensure that the stack labels are legible and match the overall chart design.
Declaration
public object Font { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Format
Used to format the stack label text. This property accepts a string that can contain placeholders.
Supports placeholders such as {value}
, where {value}
represents the total stack value.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Margin
Configures the margin for the stack label. This property allows you to define the spacing around the stack label by specifying the left, right, top, and bottom margins.
Declaration
public object Margin { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Rx
Specifies the rounded corner radius along the X-axis for the stack label background.
It defines how much curvature the corners of the label will have along the X-axis (horizontal direction).
Note: The border
property must be set for rounded corners to be visible.
Declaration
public double Rx { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
Ry
Specifies the rounded corner radius along the Y-axis for the stack label background.
It defines the curvature of the stack label's background along the Y-axis (vertical direction).
Note: The border
property must be set for rounded corners to be visible.
Declaration
public double Ry { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 5 |
Visible
Specifies whether the stack labels are visible or not in the chart.
Setting this property to true
will display the stack labels, showing the total value for each stack in stacked charts.
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |