com.github.fluorumlabs.disconnect.highcharts.NavigatorSeriesDataLabelsOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-highcharts Show documentation
Show all versions of disconnect-highcharts Show documentation
Highcharts API bindings for Disconnect Zero
package com.github.fluorumlabs.disconnect.highcharts;
import java.lang.String;
import javax.annotation.Nullable;
import js.extras.JsEnum;
import js.lang.Any;
import js.lang.Unknown;
import org.teavm.jso.JSProperty;
/**
* (Highstock) Data label options for the navigator series. Data labels are
* disabled by default on the navigator series.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels
*
*/
public interface NavigatorSeriesDataLabelsOptions extends Any {
/**
* (Highstock) The alignment of the data label compared to the point. If
* 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
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.align
*
* @implspec align?: ("center"|"left"|"right");
*
*/
@JSProperty("align")
@Nullable
Align getAlign();
/**
* (Highstock) The alignment of the data label compared to the point. If
* 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
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.align
*
* @implspec align?: ("center"|"left"|"right");
*
*/
@JSProperty("align")
void setAlign(Align value);
/**
* (Highstock) Whether to allow data labels to overlap. To make the labels
* less sensitive for overlapping, the dataLabels.padding can be set to 0.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.allowOverlap
*
* @implspec allowOverlap?: boolean;
*
*/
@JSProperty("allowOverlap")
boolean getAllowOverlap();
/**
* (Highstock) Whether to allow data labels to overlap. To make the labels
* less sensitive for overlapping, the dataLabels.padding can be set to 0.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.allowOverlap
*
* @implspec allowOverlap?: boolean;
*
*/
@JSProperty("allowOverlap")
void setAllowOverlap(boolean value);
/**
* (Highstock) The background color or gradient for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.backgroundColor
*
* @implspec backgroundColor?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("backgroundColor")
@Nullable
Unknown getBackgroundColor();
/**
* (Highstock) The background color or gradient for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.backgroundColor
*
* @implspec backgroundColor?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("backgroundColor")
void setBackgroundColor(GradientColorObject value);
/**
* (Highstock) The background color or gradient for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.backgroundColor
*
* @implspec backgroundColor?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("backgroundColor")
void setBackgroundColor(String value);
/**
* (Highstock) The background color or gradient for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.backgroundColor
*
* @implspec backgroundColor?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("backgroundColor")
void setBackgroundColor(Any value);
/**
* (Highstock) The border color for the data label. Defaults to undefined
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderColor
*
* @implspec borderColor?: ColorString;
*
*/
@JSProperty("borderColor")
@Nullable
String getBorderColor();
/**
* (Highstock) The border color for the data label. Defaults to undefined
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderColor
*
* @implspec borderColor?: ColorString;
*
*/
@JSProperty("borderColor")
void setBorderColor(String value);
/**
* (Highstock) The border radius in pixels for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderRadius
*
* @implspec borderRadius?: number;
*
*/
@JSProperty("borderRadius")
double getBorderRadius();
/**
* (Highstock) The border radius in pixels for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderRadius
*
* @implspec borderRadius?: number;
*
*/
@JSProperty("borderRadius")
void setBorderRadius(double value);
/**
* (Highstock) The border width in pixels for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderWidth
*
* @implspec borderWidth?: number;
*
*/
@JSProperty("borderWidth")
double getBorderWidth();
/**
* (Highstock) The border width in pixels for the data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.borderWidth
*
* @implspec borderWidth?: number;
*
*/
@JSProperty("borderWidth")
void setBorderWidth(double value);
/**
* (Highstock) A class name for the data label. Particularly in styled mode,
* this can be used to give each series' or point's data label unique
* styling. In addition to this option, a default color class name is added
* so that we can give the labels a contrast text shadow.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.className
*
* @implspec className?: string;
*
*/
@JSProperty("className")
@Nullable
String getClassName();
/**
* (Highstock) A class name for the data label. Particularly in styled mode,
* this can be used to give each series' or point's data label unique
* styling. In addition to this option, a default color class name is added
* so that we can give the labels a contrast text shadow.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.className
*
* @implspec className?: string;
*
*/
@JSProperty("className")
void setClassName(String value);
/**
* (Highstock) The text color for the data labels. Defaults to 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.color
*
* @implspec color?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("color")
@Nullable
Unknown getColor();
/**
* (Highstock) The text color for the data labels. Defaults to 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.color
*
* @implspec color?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("color")
void setColor(GradientColorObject value);
/**
* (Highstock) The text color for the data labels. Defaults to 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.color
*
* @implspec color?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("color")
void setColor(String value);
/**
* (Highstock) The text color for the data labels. Defaults to 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.color
*
* @implspec color?: (ColorString|GradientColorObject|object);
*
*/
@JSProperty("color")
void setColor(Any value);
/**
* (Highstock) 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.crop
*
* @implspec crop?: boolean;
*
*/
@JSProperty("crop")
boolean getCrop();
/**
* (Highstock) 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.crop
*
* @implspec crop?: boolean;
*
*/
@JSProperty("crop")
void setCrop(boolean value);
/**
* (Highcharts, Highstock, Gantt) Whether to defer displaying the data
* labels until the initial series animation has finished.
*
* @see https://api.highcharts.com/highcharts/navigator.series.dataLabels.defer
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.defer
* @see https://api.highcharts.com/gantt/navigator.series.dataLabels.defer
*
* @implspec defer?: boolean;
*
*/
@JSProperty("defer")
boolean getDefer();
/**
* (Highcharts, Highstock, Gantt) Whether to defer displaying the data
* labels until the initial series animation has finished.
*
* @see https://api.highcharts.com/highcharts/navigator.series.dataLabels.defer
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.defer
* @see https://api.highcharts.com/gantt/navigator.series.dataLabels.defer
*
* @implspec defer?: boolean;
*
*/
@JSProperty("defer")
void setDefer(boolean value);
/**
* (Highstock) Enable or disable the data labels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.enabled
*
* @implspec enabled?: boolean;
*
*/
@JSProperty("enabled")
boolean getEnabled();
/**
* (Highstock) Enable or disable the data labels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.enabled
*
* @implspec enabled?: boolean;
*
*/
@JSProperty("enabled")
void setEnabled(boolean value);
/**
* (Highstock) A declarative filter for which data labels to display. The
* declarative filter is designed for use when callback functions are not
* available, like when the chart options require a pure JSON structure or
* for use with graphical editors. For programmatic control, use the
* formatter
instead, and return undefined
to disable a single data
* label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.filter
*
* @implspec filter?: NavigatorSeriesDataLabelsFilterOptions;
*
*/
@JSProperty("filter")
@Nullable
NavigatorSeriesDataLabelsFilterOptions getFilter();
/**
* (Highstock) A declarative filter for which data labels to display. The
* declarative filter is designed for use when callback functions are not
* available, like when the chart options require a pure JSON structure or
* for use with graphical editors. For programmatic control, use the
* formatter
instead, and return undefined
to disable a single data
* label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.filter
*
* @implspec filter?: NavigatorSeriesDataLabelsFilterOptions;
*
*/
@JSProperty("filter")
void setFilter(NavigatorSeriesDataLabelsFilterOptions value);
/**
* (Highstock) A format string for the data label. Available variables are
* the same as for formatter
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.format
*
* @implspec format?: string;
*
*/
@JSProperty("format")
@Nullable
String getFormat();
/**
* (Highstock) A format string for the data label. Available variables are
* the same as for formatter
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.format
*
* @implspec format?: string;
*
*/
@JSProperty("format")
void setFormat(String value);
/**
* (Highstock) Callback JavaScript function to format the data label. Note
* that if a format
is defined, the format takes precedence and the
* formatter is ignored. Available data are:
*
* (see online documentation for example)
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.formatter
*
* @implspec formatter?: FormatterCallbackFunction;
*
*/
@JSProperty("formatter")
@Nullable
FormatterCallbackFunction getFormatter();
/**
* (Highstock) Callback JavaScript function to format the data label. Note
* that if a format
is defined, the format takes precedence and the
* formatter is ignored. Available data are:
*
* (see online documentation for example)
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.formatter
*
* @implspec formatter?: FormatterCallbackFunction;
*
*/
@JSProperty("formatter")
void setFormatter(FormatterCallbackFunction value);
/**
* (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.
* Defaults to false
in most cases, true
in stacked columns.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.inside
*
* @implspec inside?: boolean;
*
*/
@JSProperty("inside")
boolean getInside();
/**
* (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.
* Defaults to false
in most cases, true
in stacked columns.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.inside
*
* @implspec inside?: boolean;
*
*/
@JSProperty("inside")
void setInside(boolean value);
/**
* (Highstock) How to handle data labels that flow outside the plot area.
* The default is "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"
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.overflow
*
* @implspec overflow?: ("allow"|"justify");
*
*/
@JSProperty("overflow")
@Nullable
Overflow getOverflow();
/**
* (Highstock) How to handle data labels that flow outside the plot area.
* The default is "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"
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.overflow
*
* @implspec overflow?: ("allow"|"justify");
*
*/
@JSProperty("overflow")
void setOverflow(Overflow value);
/**
* (Highstock) When either the borderWidth
or the backgroundColor
is
* set, this is the padding within the box.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.padding
*
* @implspec padding?: number;
*
*/
@JSProperty("padding")
double getPadding();
/**
* (Highstock) When either the borderWidth
or the backgroundColor
is
* set, this is the padding within the box.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.padding
*
* @implspec padding?: number;
*
*/
@JSProperty("padding")
void setPadding(double value);
/**
* (Highstock) Text rotation in degrees. Note that due to a more complex
* structure, backgrounds, borders and padding will be lost on a rotated
* data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.rotation
*
* @implspec rotation?: number;
*
*/
@JSProperty("rotation")
double getRotation();
/**
* (Highstock) Text rotation in degrees. Note that due to a more complex
* structure, backgrounds, borders and padding will be lost on a rotated
* data label.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.rotation
*
* @implspec rotation?: number;
*
*/
@JSProperty("rotation")
void setRotation(double value);
/**
* (Highstock) The shadow of the box. Works best with borderWidth
or
* backgroundColor
. Since 2.3 the shadow can be an object configuration
* containing color
, offsetX
, offsetY
, opacity
and width
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.shadow
*
* @implspec shadow?: (boolean|ShadowOptionsObject);
*
*/
@JSProperty("shadow")
@Nullable
Unknown getShadow();
/**
* (Highstock) The shadow of the box. Works best with borderWidth
or
* backgroundColor
. Since 2.3 the shadow can be an object configuration
* containing color
, offsetX
, offsetY
, opacity
and width
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.shadow
*
* @implspec shadow?: (boolean|ShadowOptionsObject);
*
*/
@JSProperty("shadow")
void setShadow(ShadowOptionsObject value);
/**
* (Highstock) The shadow of the box. Works best with borderWidth
or
* backgroundColor
. Since 2.3 the shadow can be an object configuration
* containing color
, offsetX
, offsetY
, opacity
and width
.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.shadow
*
* @implspec shadow?: (boolean|ShadowOptionsObject);
*
*/
@JSProperty("shadow")
void setShadow(boolean value);
/**
* (Highstock) The name of a symbol to use for the border around the label.
* Symbols are predefined functions on the Renderer object.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.shape
*
* @implspec shape?: string;
*
*/
@JSProperty("shape")
@Nullable
String getShape();
/**
* (Highstock) The name of a symbol to use for the border around the label.
* Symbols are predefined functions on the Renderer object.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.shape
*
* @implspec shape?: string;
*
*/
@JSProperty("shape")
void setShape(String value);
/**
* (Highstock) Styles for the label. The default 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.style
*
* @implspec style?: CSSObject;
*
*/
@JSProperty("style")
@Nullable
CSSObject getStyle();
/**
* (Highstock) Styles for the label. The default 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.style
*
* @implspec style?: CSSObject;
*
*/
@JSProperty("style")
void setStyle(CSSObject value);
/**
* (Highstock) Whether to use HTML to render the labels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.useHTML
*
* @implspec useHTML?: boolean;
*
*/
@JSProperty("useHTML")
boolean getUseHTML();
/**
* (Highstock) Whether to use HTML to render the labels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.useHTML
*
* @implspec useHTML?: boolean;
*
*/
@JSProperty("useHTML")
void setUseHTML(boolean value);
/**
* (Highstock) The vertical alignment of a data label. Can be one of 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.verticalAlign
*
* @implspec verticalAlign?: ("bottom"|"middle"|"top");
*
*/
@JSProperty("verticalAlign")
@Nullable
VerticalAlign getVerticalAlign();
/**
* (Highstock) The vertical alignment of a data label. Can be one of 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.verticalAlign
*
* @implspec verticalAlign?: ("bottom"|"middle"|"top");
*
*/
@JSProperty("verticalAlign")
void setVerticalAlign(VerticalAlign value);
/**
* (Highstock) The x position offset of the label relative to the point in
* pixels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.x
*
* @implspec x?: number;
*
*/
@JSProperty("x")
double getX();
/**
* (Highstock) The x position offset of the label relative to the point in
* pixels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.x
*
* @implspec x?: number;
*
*/
@JSProperty("x")
void setX(double value);
/**
* (Highstock) The y position offset of the label relative to the point in
* pixels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.y
*
* @implspec y?: number;
*
*/
@JSProperty("y")
double getY();
/**
* (Highstock) The y position offset of the label relative to the point in
* pixels.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.y
*
* @implspec y?: number;
*
*/
@JSProperty("y")
void setY(double value);
/**
* (Highstock) 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.zIndex
*
* @implspec zIndex?: number;
*
*/
@JSProperty("zIndex")
double getZIndex();
/**
* (Highstock) 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.
*
* @see https://api.highcharts.com/highstock/navigator.series.dataLabels.zIndex
*
* @implspec zIndex?: number;
*
*/
@JSProperty("zIndex")
void setZIndex(double value);
/**
*/
abstract class Align extends JsEnum {
public static final Align CENTER = JsEnum.of("center");
public static final Align LEFT = JsEnum.of("left");
public static final Align RIGHT = JsEnum.of("right");
}
/**
*/
abstract class Overflow extends JsEnum {
public static final Overflow ALLOW = JsEnum.of("allow");
public static final Overflow JUSTIFY = JsEnum.of("justify");
}
/**
*/
abstract class VerticalAlign extends JsEnum {
public static final VerticalAlign BOTTOM = JsEnum.of("bottom");
public static final VerticalAlign MIDDLE = JsEnum.of("middle");
public static final VerticalAlign TOP = JsEnum.of("top");
}
}