Class DataLabelsFunnel
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.component.charts.model.AbstractDataLabels
OVERFLOW_JUSTIFY, OVERFLOW_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()getCrop()getDefer()getShape()getStyle()getX()getY()voidsetBackgroundColor(Color backgroundColor) The background color or gradient for the data label.voidsetBorderColor(Color borderColor) The border color for the data label.voidsetBorderRadius(Number borderRadius) The border radius in pixels for the data label.voidsetBorderWidth(Number borderWidth) The border width in pixels for the data label.voidsetClassName(String className) A class name for the data label.voidThe text color for the data labels.voidsetConnectorColor(Color connectorColor) The color of the line connecting the data label to the pie slice.voidsetConnectorPadding(Number connectorPadding) The distance from the data label to the connector.voidsetConnectorWidth(Number connectorWidth) The width of the line connecting the data label to the pie slice.voidWhether to hide data labels that are outside the plot area.voidWhether to defer displaying the data labels until the initial series animation has finished.voidsetDistance(Number distance) The distance of the data label from the pie's edge.voidsetEnabled(Boolean enabled) Enable or disable the data labels.voidA format string for the data label.voidsetFormatter(String _fn_formatter) Callback JavaScript function to format the data label.voidFor points with an extent, like columns, whether to align the data label inside the box or to the actual value point.voidsetOverflow(String overflow) How to handle data labels that flow outside the plot area.voidsetPadding(Number padding) When either theborderWidthor thebackgroundColoris set, this is the padding within the box.voidsetRotation(Number rotation) Text rotation in degrees.voidThe shadow of the box.voidThe name of a symbol to use for the border around the label.voidsetSoftConnector(Boolean softConnector) Whether to render the connector as a soft arc or a line with sharp break.voidStyles for the label.voidsetUseHTML(Boolean useHTML) Whether to use HTML to render the labels.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of a data label.voidThe x position offset of the label relative to the point.voidThe y position offset of the label relative to the point.voidThe Z index of the data labels.
-
Constructor Details
-
DataLabelsFunnel
public DataLabelsFunnel() -
DataLabelsFunnel
-
-
Method Details
-
getBackgroundColor
- Specified by:
getBackgroundColorin classAbstractDataLabels- See Also:
-
setBackgroundColor
The background color or gradient for the data label. Defaults toundefined.- Specified by:
setBackgroundColorin classAbstractDataLabels
-
getBorderColor
- Specified by:
getBorderColorin classAbstractDataLabels- See Also:
-
setBorderColor
The border color for the data label. Defaults toundefined.- Specified by:
setBorderColorin classAbstractDataLabels
-
getBorderRadius
- Specified by:
getBorderRadiusin classAbstractDataLabels- See Also:
-
setBorderRadius
The border radius in pixels for the data label.Defaults to: 0
- Specified by:
setBorderRadiusin classAbstractDataLabels
-
getBorderWidth
- Specified by:
getBorderWidthin classAbstractDataLabels- See Also:
-
setBorderWidth
The border width in pixels for the data label.Defaults to: 0
- Specified by:
setBorderWidthin classAbstractDataLabels
-
getClassName
- Specified by:
getClassNamein classAbstractDataLabels- See Also:
-
setClassName
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.- Specified by:
setClassNamein classAbstractDataLabels
-
getColor
- Specified by:
getColorin classAbstractDataLabels- See Also:
-
setColor
The text color for the data labels. Defaults tonull.- Specified by:
setColorin classAbstractDataLabels
-
getConnectorColor
- See Also:
-
setConnectorColor
The color of the line connecting the data label to the pie slice. The default color is the same as the point's color.
In styled mode, the connector stroke is given in the
.highcharts-data-label-connectorclass.Defaults to: {point.color}
-
getConnectorPadding
- See Also:
-
setConnectorPadding
The distance from the data label to the connector.Defaults to: 5
-
getConnectorWidth
- See Also:
-
setConnectorWidth
The width of the line connecting the data label to the pie slice.
In styled mode, the connector stroke width is given in the
.highcharts-data-label-connectorclass.Defaults to: 1
-
getCrop
- Specified by:
getCropin classAbstractDataLabels- See Also:
-
setCrop
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.Defaults to: true
- Specified by:
setCropin classAbstractDataLabels
-
getDefer
- Specified by:
getDeferin classAbstractDataLabels- See Also:
-
setDefer
Whether to defer displaying the data labels until the initial series animation has finished.Defaults to: true
- Specified by:
setDeferin classAbstractDataLabels
-
getDistance
- See Also:
-
setDistance
The distance of the data label from the pie's edge. Negative numbers put the data label on top of the pie slices. Connectors are only shown for data labels outside the pie.Defaults to: 30
-
getEnabled
- Specified by:
getEnabledin classAbstractDataLabels- See Also:
-
setEnabled
Enable or disable the data labels.Defaults to: true
- Specified by:
setEnabledin classAbstractDataLabels
-
getFormat
- Specified by:
getFormatin classAbstractDataLabels- See Also:
-
setFormat
A format string for the data label. Available variables are the same as forformatter.Defaults to: {y}
- Specified by:
setFormatin classAbstractDataLabels
-
getFormatter
- Specified by:
getFormatterin classAbstractDataLabels- See Also:
-
setFormatter
Description copied from class:AbstractDataLabelsCallback JavaScript function to format the data label. Note that if aformatis defined, the format takes precedence and the formatter is ignored.- Specified by:
setFormatterin classAbstractDataLabels
-
getInside
- Specified by:
getInsidein classAbstractDataLabels- See Also:
-
setInside
For points with an extent, like columns, whether to align the data label inside the box or to the actual value point. Defaults tofalsein most cases,truein stacked columns.- Specified by:
setInsidein classAbstractDataLabels
-
getOverflow
- Specified by:
getOverflowin classAbstractDataLabels- See Also:
-
setOverflow
How to handle data labels that flow outside the plot area. The default isjustify, 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, setcroptofalseandoverflowto"none".Defaults to: justify
- Specified by:
setOverflowin classAbstractDataLabels
-
getPadding
- Specified by:
getPaddingin classAbstractDataLabels- See Also:
-
setPadding
When either theborderWidthor thebackgroundColoris set, this is the padding within the box.Defaults to: 5
- Specified by:
setPaddingin classAbstractDataLabels
-
getRotation
- Specified by:
getRotationin classAbstractDataLabels- See Also:
-
setRotation
Text rotation in degrees. Note that due to a more complex structure, backgrounds, borders and padding will be lost on a rotated data label.Defaults to: 0
- Specified by:
setRotationin classAbstractDataLabels
-
getShadow
- Specified by:
getShadowin classAbstractDataLabels- See Also:
-
setShadow
The shadow of the box. Works best withborderWidthorbackgroundColor. Since 2.3 the shadow can be an object configuration containingcolor,offsetX,offsetY,opacityandwidth.Defaults to: false
- Specified by:
setShadowin classAbstractDataLabels
-
getShape
- Specified by:
getShapein classAbstractDataLabels- See Also:
-
setShape
The name of a symbol to use for the border around the label. Symbols are predefined functions on the Renderer object.Defaults to: square
- Specified by:
setShapein classAbstractDataLabels
-
getSoftConnector
- See Also:
-
setSoftConnector
Whether to render the connector as a soft arc or a line with sharp break.Defaults to: true
-
getStyle
- Specified by:
getStylein classAbstractDataLabels- See Also:
-
setStyle
Styles for the label. The defaultcolorsetting 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. ThetextOutlineis 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".Defaults to: {"color": "contrast", "fontSize": "11px", "fontWeight": "bold", "textOutline": "1px contrast" }
- Specified by:
setStylein classAbstractDataLabels
-
getUseHTML
- Specified by:
getUseHTMLin classAbstractDataLabels- See Also:
-
setUseHTML
Whether to use HTML to render the labels.Defaults to: false
- Specified by:
setUseHTMLin classAbstractDataLabels
-
getVerticalAlign
- Specified by:
getVerticalAlignin classAbstractDataLabels- See Also:
-
setVerticalAlign
The vertical alignment of a data label. Can be one oftop,middleorbottom. The default value depends on the data, for instance in a column chart, the label is above positive values and below negative values.- Specified by:
setVerticalAlignin classAbstractDataLabels
-
getX
- See Also:
-
setX
The x position offset of the label relative to the point.Defaults to: 0
-
getY
- See Also:
-
setY
The y position offset of the label relative to the point.Defaults to: -6
-
getZIndex
- Specified by:
getZIndexin classAbstractDataLabels- See Also:
-
setZIndex
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.Defaults to: 6
- Specified by:
setZIndexin classAbstractDataLabels
-