public class DataLabels<T> extends Styled<DataLabels<T>> implements Builder<T>
| Constructor and Description |
|---|
DataLabels(T parent) |
| Modifier and Type | Method and Description |
|---|---|
T |
build() |
protected DataLabels<T> |
self() |
DataLabels<T> |
setAlign(Alignment align)
The alignment of the data label compared to the point.
|
DataLabels<T> |
setAllowOverlap(Boolean allowOverlap)
Whether to allow data labels to overlap.
|
DataLabels<T> |
setColor(String color)
The text color for the data labels.
|
DataLabels<T> |
setCrop(Boolean crop)
Whether to hide data labels that are outside the plot area.
|
DataLabels<T> |
setDefer(Boolean defer)
Whether to defer displaying the data labels until the initial series animation has finished.
|
DataLabels<T> |
setEnabled(Boolean enabled)
Enable or disable the data labels.
|
DataLabels<T> |
setFormat(String format)
A format string for the data label.
|
DataLabels<T> |
setFormatter(Function.Formatter formatter)
Callback JavaScript function to format the data label.
|
DataLabels<T> |
setInside(Boolean inside)
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point.
|
DataLabels<T> |
setOverflow(String overflow)
How to handle data labels that flow outside the plot area.
|
DataLabels<T> |
setPadding(Number padding)
When either the borderWidth or the backgroundColor is set, this is the padding within the box.
|
DataLabels<T> |
setReserveSpace(Boolean reserveSpace)
Whether to reserve space for the labels.
|
DataLabels<T> |
setRotation(Number rotation)
Text rotation in degrees.
|
DataLabels<T> |
setX(Number x) |
DataLabels<T> |
setY(Number y) |
setBackgroundColor, setBorderColor, setBorderRadius, setBorderWidth, setClassNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneededModulespublic DataLabels(T parent)
public DataLabels<T> setAlign(Alignment align)
Default: center.
public DataLabels<T> setAllowOverlap(Boolean allowOverlap)
setPadding(Number) can be set to 0.
Default: false.
public DataLabels<T> setColor(String color)
Default: null.
public DataLabels<T> setCrop(Boolean crop)
setOverflow(String) option.
Default: true.
public DataLabels<T> setDefer(Boolean defer)
Default: true.
public DataLabels<T> setEnabled(Boolean enabled)
Default: false.
public DataLabels<T> setInside(Boolean inside)
Default: false in most cases, true in stacked columns.
public DataLabels<T> setFormat(String format)
public DataLabels<T> setFormatter(Function.Formatter formatter)
public DataLabels<T> setOverflow(String overflow)
setCrop(Boolean) to false and overflow to "none".
Default: justify.
public DataLabels<T> setPadding(Number padding)
Default: 5.
public DataLabels<T> setReserveSpace(Boolean reserveSpace)
Default: true
public DataLabels<T> setRotation(Number rotation)
Default: 0
public DataLabels<T> setX(Number x)
public DataLabels<T> setY(Number y)
protected DataLabels<T> self()
self in class Styled<DataLabels<T>>Copyright © 2019 Jong Soft. All rights reserved.