Class Title
java.lang.Object
software.xdev.chartjs.model.options.Title
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getColor()
getFont()
getText()
Alignment of the titleColor of textsetDisplay
(Boolean display) Display the title blocksetFullSize
(Boolean fullSize) Marks that this box should take the full width/height of the canvas.setPadding
(Integer padding) Number of pixels to add above and below the title textsetPosition
(String position) Position of the title.Title text
-
Field Details
-
align
-
color
-
display
-
fullSize
-
position
-
font
-
padding
-
text
-
-
Constructor Details
-
Title
public Title()
-
-
Method Details
-
getAlign
- See Also:
-
setAlign
Alignment of the titleDefault: center
-
getColor
- See Also:
-
setColor
Color of text -
getFullSize
- See Also:
-
setFullSize
Marks that this box should take the full width/height of the canvas. If false, the box is sized and placed above/beside the chart area.Default: true
-
getFont
-
setFont
-
getDisplay
- See Also:
-
setDisplay
Display the title block
Default
false
-
getPosition
- See Also:
-
setPosition
Position of the title. Only 'top' or 'bottom' are currently allowed
Default
'top'
-
getPadding
- See Also:
-
setPadding
Number of pixels to add above and below the title text
Default
10
-
getText
- See Also:
-
setText
Title text
Default
""
-