Class Chart3DDataLabelSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
Chart3DDataLabelSettingsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.AspNetMvc.Chart3D.dll
Syntax
public class Chart3DDataLabelSettingsBuilder : ControlBuilder
Constructors
Chart3DDataLabelSettingsBuilder()
Declaration
public Chart3DDataLabelSettingsBuilder()
Chart3DDataLabelSettingsBuilder(Chart3DDataLabelSettings)
Declaration
public Chart3DDataLabelSettingsBuilder(Chart3DDataLabelSettings model)
Parameters
Methods
Angle(Double)
Specifies angle for data label.
Declaration
public Chart3DDataLabelSettingsBuilder Angle(double value)
Parameters
| Type |
Name |
Description |
| System.Double |
value |
|
Returns
Border(Chart3DBorder)
Option for customizing the border lines.
Declaration
public Chart3DDataLabelSettingsBuilder Border(Chart3DBorder value)
Parameters
Returns
Border(Action<Chart3DBorderBuilder>)
Declaration
public Chart3DDataLabelSettingsBuilder Border(Action<Chart3DBorderBuilder> border)
Parameters
Returns
EnableRotation(Boolean)
Enables rotation for data label.
Declaration
public Chart3DDataLabelSettingsBuilder EnableRotation(bool value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
value |
|
Returns
Fill(String)
The background color of the data label accepts value in hex and rgba as a valid CSS color string.
Declaration
public Chart3DDataLabelSettingsBuilder Fill(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
Font(Chart3DTextFont)
Option for customizing the data label text.
Declaration
public Chart3DDataLabelSettingsBuilder Font(Chart3DTextFont value)
Parameters
Returns
Font(Action<Chart3DTextFontBuilder>)
Declaration
public Chart3DDataLabelSettingsBuilder Font(Action<Chart3DTextFontBuilder> font)
Parameters
Returns
Used to format the point data label that accepts any global string format like 'C', 'n1', 'P' etc.
It also accepts placeholder like '{value}°C' in which value represent the point data label, e.g, 20°C.
Declaration
public Chart3DDataLabelSettingsBuilder Format(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
LabelIntersectAction(Chart3DDataLabelIntersectAction)
Specifies the action to handle overlapping data labels.
Available options include:
None - All data labels are displayed, even if they overlap.
RelocateVertically - Relocates overlapping data labels vertically with a connector line.
RelocateHorizontally - Relocates overlapping data labels horizontally with a connector line.
Declaration
public Chart3DDataLabelSettingsBuilder LabelIntersectAction(Chart3DDataLabelIntersectAction value)
Parameters
Returns
Margin(Chart3DMargin)
Margin configuration for the data label.
Declaration
public Chart3DDataLabelSettingsBuilder Margin(Chart3DMargin value)
Parameters
Returns
Margin(Action<Chart3DMarginBuilder>)
Declaration
public Chart3DDataLabelSettingsBuilder Margin(Action<Chart3DMarginBuilder> margin)
Parameters
Returns
Name(String)
The DataSource field that contains the data label value.
Declaration
public Chart3DDataLabelSettingsBuilder Name(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
Opacity(Double)
The opacity for the background.
Declaration
public Chart3DDataLabelSettingsBuilder Opacity(double value)
Parameters
| Type |
Name |
Description |
| System.Double |
value |
|
Returns
Position(Chart3DDataLabelPosition)
Specifies the position of the data label. They are,
top: Positions the label on top of the point.
Bottom: Positions the label at the bottom of the point.
Middle: Positions the label to the middle of the point.
Declaration
public Chart3DDataLabelSettingsBuilder Position(Chart3DDataLabelPosition value)
Parameters
Returns
SmartLabelSettings(Chart3DSmartLabelSettings)
Configures the appearance of relocated data labels.
Applicable only when labelIntersectAction is set to RelocateVertically or RelocateHorizontally and the datalabel gets overlapped.
Declaration
public Chart3DDataLabelSettingsBuilder SmartLabelSettings(Chart3DSmartLabelSettings value)
Parameters
Returns
SmartLabelSettings(Action<Chart3DSmartLabelSettingsBuilder>)
Declaration
public Chart3DDataLabelSettingsBuilder SmartLabelSettings(Action<Chart3DSmartLabelSettingsBuilder> smartLabelSettings)
Parameters
Returns
Template(String)
Custom template to show the data label. Use ${point.x} and ${point.y} as a placeholder
text to display the corresponding data point.
Declaration
public Chart3DDataLabelSettingsBuilder Template(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
Visible(Boolean)
If set true, data label for series renders.
Declaration
public Chart3DDataLabelSettingsBuilder Visible(bool value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
value |
|
Returns