public interface PlotArearangeDataLabelsOptions extends Any
x
and y
options. Instead, they have xLow
,
xHigh
, yLow
and yHigh
options to allow the higher and lower data label
sets individually.Modifier and Type | Interface and Description |
---|---|
static class |
PlotArearangeDataLabelsOptions.Align |
static class |
PlotArearangeDataLabelsOptions.Overflow |
static class |
PlotArearangeDataLabelsOptions.VerticalAlign |
Modifier and Type | Method and Description |
---|---|
PlotArearangeDataLabelsOptions.Align |
getAlign()
(Highcharts, Highstock) The alignment of the data label compared to the
point.
|
boolean |
getAllowOverlap()
(Highcharts, Highstock) Whether to allow data labels to overlap.
|
Unknown |
getBackgroundColor()
(Highcharts, Highstock) The background color or gradient for the data
label.
|
String |
getBorderColor()
(Highcharts, Highstock) The border color for the data label.
|
double |
getBorderRadius()
(Highcharts, Highstock) The border radius in pixels for the data label.
|
double |
getBorderWidth()
(Highcharts, Highstock) The border width in pixels for the data label.
|
String |
getClassName()
(Highcharts, Highstock) A class name for the data label.
|
Unknown |
getColor()
(Highcharts, Highstock) The text color for the data labels.
|
boolean |
getCrop()
(Highcharts, Highstock) Whether to hide data labels that are outside the
plot area.
|
boolean |
getDefer()
(Highcharts, Highstock, Gantt) Whether to defer displaying the data
labels until the initial series animation has finished.
|
boolean |
getEnabled()
(Highcharts, Highstock) Enable or disable the data labels.
|
PlotArearangeDataLabelsFilterOptions |
getFilter()
(Highcharts, Highstock) A declarative filter for which data labels to
display.
|
String |
getFormat()
(Highcharts, Highstock) A format string for the data label.
|
FormatterCallbackFunction<SeriesDataLabelsFormatterContextObject> |
getFormatter()
(Highcharts, Highstock) Callback JavaScript function to format the data
label.
|
boolean |
getInside()
(Highcharts, Highstock) 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.
|
PlotArearangeDataLabelsOptions.Overflow |
getOverflow()
(Highcharts, Highstock) How to handle data labels that flow outside the
plot area.
|
double |
getPadding()
(Highcharts, Highstock) When either the
borderWidth or the
backgroundColor is set, this is the padding within the box. |
double |
getRotation()
(Highcharts, Highstock) Text rotation in degrees.
|
Unknown |
getShadow()
(Highcharts, Highstock) The shadow of the box.
|
String |
getShape()
(Highcharts, Highstock) The name of a symbol to use for the border around
the label.
|
CSSObject |
getStyle()
(Highcharts, Highstock) Styles for the label.
|
boolean |
getUseHTML()
(Highcharts, Highstock) Whether to use HTML to render the labels.
|
PlotArearangeDataLabelsOptions.VerticalAlign |
getVerticalAlign()
(Highcharts, Highstock) The vertical alignment of a data label.
|
double |
getXHigh()
(Highcharts, Highstock) X offset of the higher data labels relative to
the point value.
|
double |
getXLow()
(Highcharts, Highstock) X offset of the lower data labels relative to the
point value.
|
double |
getYHigh()
(Highcharts, Highstock) Y offset of the higher data labels relative to
the point value.
|
double |
getYLow()
(Highcharts, Highstock) Y offset of the lower data labels relative to the
point value.
|
double |
getZIndex()
(Highcharts, Highstock) The Z index of the data labels.
|
void |
setAlign(PlotArearangeDataLabelsOptions.Align value)
(Highcharts, Highstock) The alignment of the data label compared to the
point.
|
void |
setAllowOverlap(boolean value)
(Highcharts, Highstock) Whether to allow data labels to overlap.
|
void |
setBackgroundColor(Any value)
(Highcharts, Highstock) The background color or gradient for the data
label.
|
void |
setBackgroundColor(GradientColorObject value)
(Highcharts, Highstock) The background color or gradient for the data
label.
|
void |
setBackgroundColor(String value)
(Highcharts, Highstock) The background color or gradient for the data
label.
|
void |
setBorderColor(String value)
(Highcharts, Highstock) The border color for the data label.
|
void |
setBorderRadius(double value)
(Highcharts, Highstock) The border radius in pixels for the data label.
|
void |
setBorderWidth(double value)
(Highcharts, Highstock) The border width in pixels for the data label.
|
void |
setClassName(String value)
(Highcharts, Highstock) A class name for the data label.
|
void |
setColor(Any value)
(Highcharts, Highstock) The text color for the data labels.
|
void |
setColor(GradientColorObject value)
(Highcharts, Highstock) The text color for the data labels.
|
void |
setColor(String value)
(Highcharts, Highstock) The text color for the data labels.
|
void |
setCrop(boolean value)
(Highcharts, Highstock) Whether to hide data labels that are outside the
plot area.
|
void |
setDefer(boolean value)
(Highcharts, Highstock, Gantt) Whether to defer displaying the data
labels until the initial series animation has finished.
|
void |
setEnabled(boolean value)
(Highcharts, Highstock) Enable or disable the data labels.
|
void |
setFilter(PlotArearangeDataLabelsFilterOptions value)
(Highcharts, Highstock) A declarative filter for which data labels to
display.
|
void |
setFormat(String value)
(Highcharts, Highstock) A format string for the data label.
|
void |
setFormatter(FormatterCallbackFunction<SeriesDataLabelsFormatterContextObject> value)
(Highcharts, Highstock) Callback JavaScript function to format the data
label.
|
void |
setInside(boolean value)
(Highcharts, Highstock) 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.
|
void |
setOverflow(PlotArearangeDataLabelsOptions.Overflow value)
(Highcharts, Highstock) How to handle data labels that flow outside the
plot area.
|
void |
setPadding(double value)
(Highcharts, Highstock) When either the
borderWidth or the
backgroundColor is set, this is the padding within the box. |
void |
setRotation(double value)
(Highcharts, Highstock) Text rotation in degrees.
|
void |
setShadow(boolean value)
(Highcharts, Highstock) The shadow of the box.
|
void |
setShadow(ShadowOptionsObject value)
(Highcharts, Highstock) The shadow of the box.
|
void |
setShape(String value)
(Highcharts, Highstock) The name of a symbol to use for the border around
the label.
|
void |
setStyle(CSSObject value)
(Highcharts, Highstock) Styles for the label.
|
void |
setUseHTML(boolean value)
(Highcharts, Highstock) Whether to use HTML to render the labels.
|
void |
setVerticalAlign(PlotArearangeDataLabelsOptions.VerticalAlign value)
(Highcharts, Highstock) The vertical alignment of a data label.
|
void |
setXHigh(double value)
(Highcharts, Highstock) X offset of the higher data labels relative to
the point value.
|
void |
setXLow(double value)
(Highcharts, Highstock) X offset of the lower data labels relative to the
point value.
|
void |
setYHigh(double value)
(Highcharts, Highstock) Y offset of the higher data labels relative to
the point value.
|
void |
setYLow(double value)
(Highcharts, Highstock) Y offset of the lower data labels relative to the
point value.
|
void |
setZIndex(double value)
(Highcharts, Highstock) The Z index of the data labels.
|
@Nullable PlotArearangeDataLabelsOptions.Align getAlign()
right
, the right side of the label should be touching the
point. For points with an extent, like columns, the alignments also
dictates how to align it inside the box, as given with the inside option.
Can be one of left
, center
or right
.void setAlign(PlotArearangeDataLabelsOptions.Align value)
right
, the right side of the label should be touching the
point. For points with an extent, like columns, the alignments also
dictates how to align it inside the box, as given with the inside option.
Can be one of left
, center
or right
.boolean getAllowOverlap()
void setAllowOverlap(boolean value)
@Nullable Unknown getBackgroundColor()
void setBackgroundColor(GradientColorObject value)
void setBackgroundColor(String value)
void setBackgroundColor(Any value)
@Nullable String getBorderColor()
undefined
.void setBorderColor(String value)
undefined
.double getBorderRadius()
void setBorderRadius(double value)
double getBorderWidth()
void setBorderWidth(double value)
@Nullable String getClassName()
void setClassName(String value)
@Nullable Unknown getColor()
undefined
. For certain series types, like column or map, the data
labels can be drawn inside the points. In this case the data label will
be drawn with maximum contrast by default. Additionally, it will be given
a text-outline
style with the opposite color, to further increase the
contrast. This can be overridden by setting the text-outline
style to
none
in the dataLabels.style
option.void setColor(GradientColorObject value)
undefined
. For certain series types, like column or map, the data
labels can be drawn inside the points. In this case the data label will
be drawn with maximum contrast by default. Additionally, it will be given
a text-outline
style with the opposite color, to further increase the
contrast. This can be overridden by setting the text-outline
style to
none
in the dataLabels.style
option.void setColor(String value)
undefined
. For certain series types, like column or map, the data
labels can be drawn inside the points. In this case the data label will
be drawn with maximum contrast by default. Additionally, it will be given
a text-outline
style with the opposite color, to further increase the
contrast. This can be overridden by setting the text-outline
style to
none
in the dataLabels.style
option.void setColor(Any value)
undefined
. For certain series types, like column or map, the data
labels can be drawn inside the points. In this case the data label will
be drawn with maximum contrast by default. Additionally, it will be given
a text-outline
style with the opposite color, to further increase the
contrast. This can be overridden by setting the text-outline
style to
none
in the dataLabels.style
option.boolean getCrop()
void setCrop(boolean value)
boolean getDefer()
void setDefer(boolean value)
boolean getEnabled()
void setEnabled(boolean value)
@Nullable PlotArearangeDataLabelsFilterOptions getFilter()
formatter
instead, and return undefined
to disable a
single data label.void setFilter(PlotArearangeDataLabelsFilterOptions value)
formatter
instead, and return undefined
to disable a
single data label.@Nullable String getFormat()
formatter
.void setFormat(String value)
formatter
.@Nullable FormatterCallbackFunction<SeriesDataLabelsFormatterContextObject> getFormatter()
format
is defined, the format takes precedence
and the formatter is ignored. Available data are:
(see online documentation for example)void setFormatter(FormatterCallbackFunction<SeriesDataLabelsFormatterContextObject> value)
format
is defined, the format takes precedence
and the formatter is ignored. Available data are:
(see online documentation for example)boolean getInside()
false
in most cases, true
in stacked
columns.void setInside(boolean value)
false
in most cases, true
in stacked
columns.@Nullable PlotArearangeDataLabelsOptions.Overflow getOverflow()
"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 "allow"
.void setOverflow(PlotArearangeDataLabelsOptions.Overflow value)
"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 "allow"
.double getPadding()
borderWidth
or the
backgroundColor
is set, this is the padding within the box.void setPadding(double value)
borderWidth
or the
backgroundColor
is set, this is the padding within the box.double getRotation()
void setRotation(double value)
@Nullable Unknown getShadow()
borderWidth
or backgroundColor
. Since 2.3 the shadow can be an object
configuration containing color
, offsetX
, offsetY
, opacity
and
width
.void setShadow(ShadowOptionsObject value)
borderWidth
or backgroundColor
. Since 2.3 the shadow can be an object
configuration containing color
, offsetX
, offsetY
, opacity
and
width
.void setShadow(boolean value)
borderWidth
or backgroundColor
. Since 2.3 the shadow can be an object
configuration containing color
, offsetX
, offsetY
, opacity
and
width
.@Nullable String getShape()
void setShape(String value)
@Nullable CSSObject getStyle()
color
setting
is "contrast"
, which is a pseudo color that Highcharts picks up and
applies the maximum contrast to the underlying point item, for example
the bar in a bar chart.
The textOutline
is a pseudo property that applies an outline of the
given width with the given color, which by default is the maximum
contrast to the text. So a bright text color will result in a black text
outline for maximum readability on a mixed background. In some cases,
especially with grayscale text, the text outline doesn't work well, in
which cases it can be disabled by setting it to "none"
. When useHTML
is true, the textOutline
will not be picked up. In this, case, the same
effect can be acheived through the text-shadow
CSS property.
For some series types, where each point has an extent, like for example
tree maps, the data label may overflow the point. There are two
strategies for handling overflow. By default, the text will wrap to
multiple lines. The other strategy is to set style.textOverflow
to
ellipsis
, which will keep the text on one line plus it will break
inside long words.void setStyle(CSSObject value)
color
setting
is "contrast"
, which is a pseudo color that Highcharts picks up and
applies the maximum contrast to the underlying point item, for example
the bar in a bar chart.
The textOutline
is a pseudo property that applies an outline of the
given width with the given color, which by default is the maximum
contrast to the text. So a bright text color will result in a black text
outline for maximum readability on a mixed background. In some cases,
especially with grayscale text, the text outline doesn't work well, in
which cases it can be disabled by setting it to "none"
. When useHTML
is true, the textOutline
will not be picked up. In this, case, the same
effect can be acheived through the text-shadow
CSS property.
For some series types, where each point has an extent, like for example
tree maps, the data label may overflow the point. There are two
strategies for handling overflow. By default, the text will wrap to
multiple lines. The other strategy is to set style.textOverflow
to
ellipsis
, which will keep the text on one line plus it will break
inside long words.boolean getUseHTML()
void setUseHTML(boolean value)
@Nullable PlotArearangeDataLabelsOptions.VerticalAlign getVerticalAlign()
top
, middle
or bottom
. The default value depends on the
data, for instance in a column chart, the label is above positive values
and below negative values.void setVerticalAlign(PlotArearangeDataLabelsOptions.VerticalAlign value)
top
, middle
or bottom
. The default value depends on the
data, for instance in a column chart, the label is above positive values
and below negative values.double getXHigh()
void setXHigh(double value)
double getXLow()
void setXLow(double value)
double getYHigh()
void setYHigh(double value)
double getYLow()
void setYLow(double value)
double getZIndex()
void setZIndex(double value)
Copyright © 2020. All rights reserved.