Class Title
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Title
- All Implemented Interfaces:
Serializable
The chart's main title.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()getStyle()getText()getX()getY()voidsetAlign(HorizontalAlign align) The horizontal alignment of the title.voidsetFloating(Boolean floating) When the title is floating, the plot area will not move to make space for it.voidThe margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area.voidCSS styles for the title.voidThe title of the chart.voidsetUseHTML(Boolean useHTML) Whether to use HTML to render the text.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of the title.voidThe x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.voidThe y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom.
-
Constructor Details
-
Title
public Title() -
Title
-
-
Method Details
-
getAlign
- See Also:
-
setAlign
The horizontal alignment of the title. Can be one of "left", "center" and "right".Defaults to: center
-
getFloating
- See Also:
-
setFloating
When the title is floating, the plot area will not move to make space for it.Defaults to: false
-
getMargin
- See Also:
-
setMargin
The margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area.Defaults to: 15
-
getStyle
- See Also:
-
setStyle
CSS styles for the title. Use this for font styling, but use
align,xandyfor text alignment.In styled mode, the title style is given in the
.highcharts-titleclass.Defaults to: { "color": "#333333", "fontSize": "18px" }
-
getText
- See Also:
-
setText
The title of the chart. To disable the title, set thetexttonull.Defaults to: Chart title
-
getUseHTML
- See Also:
-
setUseHTML
Whether to use HTML to render the text.Defaults to: false
-
getVerticalAlign
- See Also:
-
setVerticalAlign
The vertical alignment of the title. Can be one of"top","middle"and"bottom". When a value is given, the title behaves as if floating weretrue. -
getX
- See Also:
-
setX
The x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.Defaults to: 0
-
getY
- See Also:
-
setY
The y position of the title relative to the alignment within chart.spacingTop and chart.spacingBottom. By default it depends on the font size.
-