public class Subtitle extends BaseOption
The chart's subtitle. This can be used both to display a subtitle below the main title, and to display random text anywhere in the chart. The subtitle can be updated after chart initialization through the Chart.setTitle
method.
Constructor and Description |
---|
Subtitle() |
Modifier and Type | Method and Description |
---|---|
HorizontalAlign |
getAlign()
The horizontal alignment of the subtitle.
|
String |
getText()
The subtitle of the chart.
|
Subtitle |
setAlign(HorizontalAlign align)
The horizontal alignment of the subtitle.
|
Subtitle |
setText(String text)
The subtitle of the chart.
|
set_hcNulledOption
public static final Subtitle NULL
public HorizontalAlign getAlign()
The horizontal alignment of the subtitle. Can be one of "left", "center" and "right".
public Subtitle setAlign(HorizontalAlign align)
The horizontal alignment of the subtitle. Can be one of "left", "center" and "right".
align
- the value for the align optionpublic String getText()
The subtitle of the chart.
Copyright © 2024. All rights reserved.