Class ChartTitleSettings
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartTitleSettings : EJTagHelper
Constructors
ChartTitleSettings()
Declaration
public ChartTitleSettings()
Properties
Background
The background
property sets the background color of the chart title and subtitle.
Declaration
public string Background { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
Border
The border
property allows configuring the border settings for the chart title and subtitle.
Declaration
public object Border { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Color
The color
property specifies the color of the text used for the chart title and subtitle.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
FontFamily
The fontFamily
property specifies the font family for the text used in the chart title and subtitle.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FontStyle
The fontStyle
property specifies the style of the text used for the chart title and subtitle.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Normal" |
FontWeight
The fontWeight
property specifies the weight (thickness) of the text used for the chart title and subtitle.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "500" |
Opacity
Specifies the opacity for the text.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
Position
Defines the position for the chart title and subtitle. The available options are: Top: Displays the title and subtitle at the top of the chart. Left: Displays the title and subtitle at the left of the chart. Bottom: Displays the title and subtitle at the bottom of the chart. Right: Displays the title and subtitle at the right of the chart. Custom: Displays the title and subtitle based on the specified x and y values.
Declaration
public TitlePosition Position { get; set; }
Property Value
Type | Description |
---|---|
TitlePosition | The default value is TitlePosition.Top |
Size
Specifies the font size for the chart title and subtitle.
Declaration
public string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "15px" |
TextAlignment
The textAlignment
property determines how the text is aligned within the specified area.
Declaration
public Alignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment | The default value is Alignment.Center |
TextOverflow
The textOverflow
property determines how the text in the chart title and subtitle behaves when it exceeds the available space.
Declaration
public TextOverflow TextOverflow { get; set; }
Property Value
Type | Description |
---|---|
TextOverflow | The default value is TextOverflow.Wrap |
X
Defines the X coordinate for the chart title and subtitle.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Y
Defines the Y coordinate for the chart title and subtitle.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |