public class Tooltip extends BaseOption
Options for the tooltip that appears when the user hovers over a series or point.
Copyright (c) 2020 Powerbuilt Systems. All rights reserved.Constructor and Description |
---|
Tooltip() |
Modifier and Type | Method and Description |
---|---|
String |
getPointFormat()
The HTML of the point's line in the tooltip.
|
Tooltip |
setPointFormat(String pointFormat)
The HTML of the point's line in the tooltip.
|
set_hcNulledOption
public static final Tooltip NULL
public String getPointFormat()
The HTML of the point's line in the tooltip. Variables are enclosed by curly brackets. Available variables are point.x, point.y, series. name and series.color and other properties on the same form. Furthermore, point.y
can be extended by the tooltip.valuePrefix
and tooltip.valueSuffix
variables. This can also be overridden for each series, which makes it a good hook for displaying units.
In styled mode, the dot is colored by a class name rather than the point color.
public Tooltip setPointFormat(String pointFormat)
The HTML of the point's line in the tooltip. Variables are enclosed by curly brackets. Available variables are point.x, point.y, series. name and series.color and other properties on the same form. Furthermore, point.y
can be extended by the tooltip.valuePrefix
and tooltip.valueSuffix
variables. This can also be overridden for each series, which makes it a good hook for displaying units.
In styled mode, the dot is colored by a class name rather than the point color.
pointFormat
- the value for the pointFormat optionCopyright © 2022. All rights reserved.