public class DataLabelOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
AlignHorizontal |
align
The alignment of the data label compared to the point.
|
Boolean |
allowOverlap
Whether to allow data labels to overlap.
|
String |
backgroundColor
The background color or gradient for the data label.
|
String |
borderColor
The border color for the data label.
|
Integer |
borderRadius
The border radius in pixels for the data label.
|
Integer |
borderWidth
The border width in pixels for the data label.
|
String |
className
A class name for the data label.
|
String |
color
The text color for the data labels.
|
Boolean |
crop
Whether to hide data labels that are outside the plot area.
|
Boolean |
defer
Whether to defer displaying the data labels until the initial series animation has finished.
|
Boolean |
enabled
Enable or disable the data labels.
|
String |
format
A format string for the data label.
|
String |
formatter
Callback JavaScript function to format the data label.
|
Boolean |
inside
For points with an extent, like columns or map areas, whether to align the data label inside
the box or to the actual value point.
|
String |
overflow
How to handle overflowing labels on horizontal axis.
|
Integer |
padding
When either the borderWidth or the backgroundColor is set, this is the padding within the
box.
|
Integer |
rotation
Rotation of the labels in degrees.
|
Object |
shadow
The shadow of the box.
|
String |
shape
The name of a symbol to use for the border around the label.
|
StyleOptions |
style
CSS styles for the label.
|
Boolean |
useHTML
Whether to use HTML to render the labels.
|
AlignVertical |
verticalAlign
The vertical alignment of a data label.
|
Integer |
x
The x position offset of the label relative to the point.
|
Integer |
y
The y position offset of the label relative to the point.
|
Integer |
zIndex
The Z index of the data labels.
|
| Constructor and Description |
|---|
DataLabelOptions() |
@Option public AlignHorizontal align
@Option public Boolean allowOverlap
@Option public String backgroundColor
@Option public String borderColor
@Option public Integer borderRadius
@Option public Integer borderWidth
@Option public String className
@Option public Boolean crop
@Option public Boolean defer
@Option public String format
@Option(convertTo=org.fujion.ancillary.JavaScript.class) public String formatter
@Option public Boolean inside
@Option public String overflow
@Option public Integer padding
@Option public Object shadow
@Option public String shape
@Option public final StyleOptions style
@Option public AlignVertical verticalAlign
@Option public Integer y
Copyright © 2018 Fujion Framework. All rights reserved.