public abstract class AbstractDataLabels extends AbstractConfigurationObject
Modifier and Type | Field and Description |
---|---|
static String |
OVERFLOW_JUSTIFY |
static String |
OVERFLOW_NONE |
Constructor and Description |
---|
AbstractDataLabels() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getClassName() |
abstract Boolean |
getCrop() |
abstract Boolean |
getDefer() |
abstract Boolean |
getEnabled() |
abstract String |
getFormat() |
abstract String |
getFormatter() |
abstract Boolean |
getInside() |
abstract String |
getOverflow() |
abstract Number |
getPadding() |
abstract Number |
getRotation() |
abstract Boolean |
getShadow() |
abstract Shape |
getShape() |
abstract Boolean |
getUseHTML() |
abstract VerticalAlign |
getVerticalAlign() |
abstract Number |
getZIndex() |
abstract void |
setClassName(String className)
A class name for the data label.
|
abstract void |
setCrop(Boolean crop)
Whether to hide data labels that are outside the plot area.
|
abstract void |
setDefer(Boolean defer)
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 |
setFormat(String format)
A format string for the data label.
|
abstract void |
setFormatter(String _fn_formatter)
Callback JavaScript function to format the data label.
|
abstract void |
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.
|
abstract void |
setOverflow(String overflow)
How to handle data labels that flow outside the plot area.
|
abstract void |
setPadding(Number padding)
When either the
borderWidth or the
backgroundColor is set, this is the padding within the box. |
abstract void |
setRotation(Number rotation)
Text rotation in degrees.
|
abstract void |
setShadow(Boolean shadow)
The shadow of the box.
|
abstract void |
setShape(Shape shape)
The name of a symbol to use for the border around 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 |
setZIndex(Number zIndex)
The Z index of the data labels.
|
public static final String OVERFLOW_JUSTIFY
public static final String OVERFLOW_NONE
public abstract String getClassName()
setClassName(String)
public abstract void setClassName(String className)
public abstract Boolean getCrop()
setCrop(Boolean)
public abstract void setCrop(Boolean crop)
public abstract Boolean getDefer()
setDefer(Boolean)
public abstract void setDefer(Boolean defer)
public abstract Boolean getEnabled()
setEnabled(Boolean)
public abstract void setEnabled(Boolean enabled)
public abstract String getFormat()
setFormat(String)
public abstract void setFormat(String format)
formatter
.public abstract String getFormatter()
setFormatter(String)
public abstract void setFormatter(String _fn_formatter)
format
is defined, the format takes precedence and the
formatter is ignored.public abstract Boolean getInside()
setInside(Boolean)
public abstract void setInside(Boolean inside)
public abstract String getOverflow()
setOverflow(String)
public abstract void setOverflow(String overflow)
justify
, 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, set crop
to false
and overflow
to "none"
.public abstract Number getPadding()
setPadding(Number)
public abstract void setPadding(Number padding)
borderWidth
or the
backgroundColor
is set, this is the padding within the box.public abstract Number getRotation()
setRotation(Number)
public abstract void setRotation(Number rotation)
public abstract Boolean getShadow()
setShadow(Boolean)
public abstract void setShadow(Boolean shadow)
public abstract Shape getShape()
setShape(Shape)
public abstract void setShape(Shape shape)
public abstract Boolean getUseHTML()
setUseHTML(Boolean)
public abstract void setUseHTML(Boolean useHTML)
public abstract VerticalAlign getVerticalAlign()
setVerticalAlign(VerticalAlign)
public abstract void setVerticalAlign(VerticalAlign verticalAlign)
public abstract Number getZIndex()
setZIndex(Number)
public abstract void setZIndex(Number zIndex)
Copyright © 2023. All rights reserved.