Class SeriesTooltip
- All Implemented Interfaces:
Serializable
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldfollowPointer.Getter for the fieldfollowTouchMove.Getter for the fieldfooterFormat.Getter for the fieldheaderFormat.Getter for the fieldhideDelay.Getter for the fieldpointFormat.getPointFormatter.Getter for the fieldvalueDecimals.Getter for the fieldvaluePrefix.Getter for the fieldvalueSuffix.voidsetFollowPointer(Boolean followPointer) Whether the tooltip should follow the mouse as it moves across columns, pie slices and other point types with an extent.voidsetFollowTouchMove(Boolean followTouchMove) Whether the tooltip should follow the finger as it moves on a touch device.voidsetFooterFormat(String footerFormat) A string to append to the tooltip format.voidsetHeaderFormat(String headerFormat) The HTML of the tooltip header line.voidsetHideDelay(Number hideDelay) The number of milliseconds to wait until the tooltip is hidden when mouse out from a point or chart.voidsetPointFormat(String pointFormat) The HTML of the point's line in the tooltip.voidsetPointFormatter(String _fn_pointFormatter) setPointFormatter.voidsetValueDecimals(Number valueDecimals) How many decimals to show in each series' value.voidsetValuePrefix(String valuePrefix) A string to prepend to each series' value.voidsetValueSuffix(String valueSuffix) A string to append to each series' value.
-
Constructor Details
-
SeriesTooltip
public SeriesTooltip()Constructor for SeriesTooltip.
-
-
Method Details
-
getFollowPointer
Getter for the field
followPointer.- Returns:
- a
Booleanobject. - See Also:
-
setFollowPointer
Whether the tooltip should follow the mouse as it moves across columns, pie slices and other point types with an extent. By default it behaves this way for scatter, bubble and pie series by override in the
plotOptionsfor those series types.For touch moves to behave the same way, followTouchMove must be
truealso.Defaults to: true
- Parameters:
followPointer- aBooleanobject.
-
getFollowTouchMove
Getter for the field
followTouchMove.- Returns:
- a
Booleanobject. - See Also:
-
setFollowTouchMove
Whether the tooltip should follow the finger as it moves on a touch device. If chart.zoomType is set, it will overridefollowTouchMove.Defaults to: true
- Parameters:
followTouchMove- aBooleanobject.
-
getHeaderFormat
Getter for the field
headerFormat.- Returns:
- a
Stringobject. - See Also:
-
setHeaderFormat
The HTML of the tooltip header line. Variables are enclosed by curly brackets. Available variables are
point.name,series.name,series.colorand other members from thepointandseriesobjects.Defaults to
<span style="font-size: 10px">{point.key}</span><br/>- Parameters:
headerFormat- aStringobject.
-
getHideDelay
Getter for the field
hideDelay.- Returns:
- a
Numberobject. - See Also:
-
setHideDelay
The number of milliseconds to wait until the tooltip is hidden when mouse out from a point or chart.Defaults to: 500
- Parameters:
hideDelay- aNumberobject.
-
getPointFormat
Getter for the field
pointFormat.- Returns:
- a
Stringobject. - See Also:
-
setPointFormat
The HTML of the point's line in the tooltip. Variables are enclosed by curly brackets. Available variables are point.value, series.name and series.color and other properties on the same form. Furthermore, point.value can be extended by the
tooltip.valuePrefixandtooltip.valueSuffixvariables. This can also be overridden for each series, which makes it a good hook for displaying units.For maps it defaults to
'{point.name}: {point.value}<br/>'- Parameters:
pointFormat- aStringobject.
-
getPointFormatter
getPointFormatter.
- Returns:
- a
Stringobject.
-
setPointFormatter
setPointFormatter.
- Parameters:
_fn_pointFormatter- aStringobject.
-
getValueDecimals
Getter for the field
valueDecimals.- Returns:
- a
Numberobject. - See Also:
-
setValueDecimals
How many decimals to show in each series' value. This is overridable in each series' tooltip options object. The default is to preserve all decimals.- Parameters:
valueDecimals- aNumberobject.
-
getValuePrefix
Getter for the field
valuePrefix.- Returns:
- a
Stringobject. - See Also:
-
setValuePrefix
A string to prepend to each series' value. Overridable in each series' tooltip options object.- Parameters:
valuePrefix- aStringobject.
-
getValueSuffix
Getter for the field
valueSuffix.- Returns:
- a
Stringobject. - See Also:
-
setValueSuffix
A string to append to each series' value. Overridable in each series' tooltip options object.- Parameters:
valueSuffix- aStringobject.
-