API Reference
Class
ChartJsTitle
Represents the title configuration for a Chart.js chart.
Inheritance
- Object
- ChartJsTitle
Constructors
public ChartJsTitle() #Methods
Color 2 overloads
public ChartJsTitle Display(Boolean display = true) #Returns:
ChartJsTitleSets whether the title is displayed.
Parameters
- display System.Boolean = true
public ChartJsTitle FontSize(Int32 size) #Returns:
ChartJsTitleSets the title font size (in pixels).
Parameters
- size System.Int32
public ChartJsTitle FontWeight(ChartJsFontWeight weight) #Returns:
ChartJsTitleSets the title font weight.
Parameters
- weight HtmlForgeX.ChartJsFontWeight
public ChartJsTitle Padding(Action<ChartJsLayoutPadding> configure) #Returns:
ChartJsTitleConfigures padding using Chart.js layout semantics.
Parameters
- configure System.Action{HtmlForgeX.ChartJsLayoutPadding}
public ChartJsTitle Position(ChartJsPosition position) #Returns:
ChartJsTitleSets the title position.
Parameters
- position HtmlForgeX.ChartJsPosition
public ChartJsTitle Text(String text, Boolean display = true) #Returns:
ChartJsTitleSets the title text and toggles its visibility.
Parameters
- text System.String
- display System.Boolean = true
Inherited Methods
Properties
public Nullable<Boolean> IsDisplayed { get; set; } #JsonPropertyName("display") JsonIgnore(Condition = 3)Gets or sets whether to display the title.
public Object TitleText { get; set; } #JsonPropertyName("text") JsonIgnore(Condition = 3)Gets or sets the title text.
public Nullable<ChartJsPosition> TitlePosition { get; set; } #JsonPropertyName("position") JsonIgnore(Condition = 3) JsonConverter(typeof(ChartJsPositionNullableConverter))Gets or sets the position of the title.
public ChartJsFont Font { get; set; } #JsonPropertyName("font") JsonIgnore(Condition = 3)Gets or sets the font configuration.
public String TitleColor { get; set; } #JsonPropertyName("color") JsonIgnore(Condition = 3)Gets or sets the color.
public Object TitlePadding { get; set; } #JsonPropertyName("padding") JsonIgnore(Condition = 3)Gets or sets the padding.