com.vaadin.flow.component.charts.model.
Class AxisTitle
All Implemented Interfaces:
The axis title, showing next to the axis line.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getStyle()
getText()
getX()
getY()
void
setAlign
(VerticalAlign align) Alignment of the title relative to the axis values.
void
The pixel distance between the axis labels and the title.
void
The distance of the axis title from the axis line.
void
setReserveSpace
(Boolean reserveSpace) Whether to reserve space for the title when laying out the axis.
void
setRotation
(Number rotation) The rotation of the text in degrees.
void
CSS styles for the title.
void
The actual text of the axis title.
void
Horizontal pixel offset of the title position.
void
Vertical pixel offset of the title position.
-
Constructor Details
-
AxisTitle
public AxisTitle() -
AxisTitle
-
-
Method Details
-
getAlign
See Also:
-
setAlign
Alignment of the title relative to the axis values. Possible values are "low", "middle" or "high".
Defaults to: middle
-
getMargin
See Also:
-
setMargin
The pixel distance between the axis labels and the title. Positive values are outside the axis line, negative are inside.
Defaults to: 40
-
getOffset
See Also:
-
setOffset
The distance of the axis title from the axis line. By default, this distance is computed from the offset width of the labels, the labels' distance from the axis and the title's margin. However when the offset option is set, it overrides all this.
-
getReserveSpace
See Also:
-
setReserveSpace
Whether to reserve space for the title when laying out the axis.
Defaults to: true
-
getRotation
See Also:
-
setRotation
The rotation of the text in degrees. 0 is horizontal, 270 is vertical reading from bottom to top.
Defaults to: 270
-
getStyle
See Also:
-
setStyle
CSS styles for the title. When titles are rotated they are rendered using vector graphic techniques and not all styles are applicable.
In styled mode, the stroke width is given in the
.highcharts-axis-title
class.Defaults to: { "color": "#666666" }
-
getText
See Also:
-
setText
The actual text of the axis title. Horizontal texts can contain HTML, but rotated texts are painted using vector techniques and must be clean text. The Y axis title is disabled by setting the
text
option tonull
.Defaults to: Values
-
getX
See Also:
-
setX
Horizontal pixel offset of the title position.
Defaults to: 0
-
getY
See Also:
-
setY
Vertical pixel offset of the title position.
-