Class AbstractDataLabels
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.AbstractDataLabels
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataLabels
,DataLabelsFunnel
,DataLabelsRange
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Color
abstract Color
abstract Number
abstract Number
abstract String
abstract Color
getColor()
abstract Boolean
getCrop()
abstract Boolean
getDefer()
abstract Boolean
abstract String
abstract String
abstract Boolean
abstract String
abstract Number
abstract Number
abstract Boolean
abstract Shape
getShape()
abstract Style
getStyle()
abstract Boolean
abstract VerticalAlign
abstract Number
abstract void
setBackgroundColor
(Color backgroundColor) The background color or gradient for the data label.abstract void
setBorderColor
(Color borderColor) The border color for the data label.abstract void
setBorderRadius
(Number borderRadius) The border radius in pixels for the data label.abstract void
setBorderWidth
(Number borderWidth) The border width in pixels for the data label.abstract void
setClassName
(String className) A class name for the data label.abstract void
The text color for the data labels.abstract void
Whether to hide data labels that are outside the plot area.abstract void
Whether to defer displaying the data labels until the initial series animation has finished.abstract void
setEnabled
(Boolean enabled) Enable or disable the data labels.abstract void
A format string for the data label.abstract void
setFormatter
(String _fn_formatter) Callback JavaScript function to format the data label.abstract void
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point.abstract void
setOverflow
(String overflow) How to handle data labels that flow outside the plot area.abstract void
setPadding
(Number padding) When either theborderWidth
or thebackgroundColor
is set, this is the padding within the box.abstract void
setRotation
(Number rotation) Text rotation in degrees.abstract void
The shadow of the box.abstract void
The name of a symbol to use for the border around the label.abstract void
Styles for the label.abstract void
setUseHTML
(Boolean useHTML) Whether to use HTML to render the labels.abstract void
setVerticalAlign
(VerticalAlign verticalAlign) The vertical alignment of a data label.abstract void
The Z index of the data labels.
-
Field Details
-
OVERFLOW_JUSTIFY
- See Also:
-
OVERFLOW_NONE
- See Also:
-
-
Constructor Details
-
AbstractDataLabels
public AbstractDataLabels()
-
-
Method Details
-
getClassName
- See Also:
-
setClassName
A class name for the data label. -
getBackgroundColor
- See Also:
-
setBackgroundColor
The background color or gradient for the data label. -
getBorderColor
- See Also:
-
setBorderColor
The border color for the data label. -
getBorderRadius
- See Also:
-
setBorderRadius
The border radius in pixels for the data label. -
getColor
- See Also:
-
setColor
The text color for the data labels. -
getBorderWidth
- See Also:
-
setBorderWidth
The border width in pixels for the data label. -
getCrop
- See Also:
-
setCrop
Whether to hide data labels that are outside the plot area. By default, the data label is moved inside the plot area according to the overflow option. -
getDefer
- See Also:
-
setDefer
Whether to defer displaying the data labels until the initial series animation has finished. -
getEnabled
- See Also:
-
setEnabled
Enable or disable the data labels. -
getFormat
- See Also:
-
setFormat
A format string for the data label. Available variables are the same as forformatter
. -
getFormatter
- See Also:
-
setFormatter
Callback JavaScript function to format the data label. Note that if aformat
is defined, the format takes precedence and the formatter is ignored. -
getInside
- See Also:
-
setInside
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point. -
getOverflow
- See Also:
-
setOverflow
How to handle data labels that flow outside the plot area. The default isjustify
, which aligns them inside the plot area. For columns and bars, this means it will be moved inside the bar. To display data labels outside the plot area, setcrop
tofalse
andoverflow
to"none"
. -
getPadding
- See Also:
-
setPadding
When either theborderWidth
or thebackgroundColor
is set, this is the padding within the box. -
getRotation
- See Also:
-
setRotation
Text rotation in degrees. Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label. -
getShadow
- See Also:
-
setShadow
The shadow of the box. -
getShape
- See Also:
-
setShape
The name of a symbol to use for the border around the label. Symbols are predefined functions on the Renderer object. -
getStyle
- See Also:
-
setStyle
Styles for the label. -
getUseHTML
- See Also:
-
setUseHTML
Whether to use HTML to render the labels. -
getVerticalAlign
- See Also:
-
setVerticalAlign
The vertical alignment of a data label. -
getZIndex
- See Also:
-
setZIndex
The Z index of the data labels. The default Z index puts it above the series. Use a Z index of 2 to display it behind the series.
-