public class TooltipOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
Boolean |
animation
Enable or disable animation of the tooltip.
|
String |
backgroundColor
The background color or gradient for the tooltip.
|
String |
borderColor
The color of the tooltip border.
|
Integer |
borderRadius
The radius of the rounded border corners.
|
Integer |
borderWidth
The pixel width of the tooltip border.
|
Object |
crosshairs
Display crosshairs to connect the points with their corresponding axis values.
|
DateTimeFormatOptions |
dateTimeLabelFormats
For series on a datetime axes, the date format in the tooltip's header will by default be
guessed based on the closest data points.
|
Boolean |
enabled
Enable or disable the tooltip.
|
Boolean |
followPointer
Whether the tooltip should follow the mouse as it moves across columns, pie slices and other
point types with an extent.
|
Boolean |
followTouchMove
Whether the tooltip should follow the finger as it moves on a touch device.
|
String |
footerFormat
A string to append to the tooltip format.
|
String |
formatter
Callback function to format the text of the tooltip.
|
String |
headerFormat
Not sure if this is supported?
|
Integer |
hideDelay
The number of milliseconds to wait until the tooltip is hidden when mouse out from a point or
chart.
|
String |
pointFormat
The HTML of the point's line in the tooltip.
|
String |
positioner
A callback function to place the tooltip in a default position.
|
Boolean |
shadow
Whether to apply a drop shadow to the tooltip.
|
Boolean |
shared
When the tooltip is shared, the entire plot area will capture mouse movement, and tooltip
texts for all series will be shown in a single bubble.
|
Integer |
snap
Proximity snap for graphs or single points.
|
StyleOptions |
style
CSS styles for the tooltip.
|
Boolean |
useHTML
Use HTML to render the contents of the tooltip instead of SVG.
|
Integer |
valueDecimals
How many decimals to show in each series' y value.
|
String |
valuePrefix
A string to prepend to each series' y value.
|
String |
valueSuffix
A string to append to each series' y value.
|
| Constructor and Description |
|---|
TooltipOptions() |
public Boolean animation
public String backgroundColor
public String borderColor
public Integer borderRadius
public Integer borderWidth
public Object crosshairs
public final DateTimeFormatOptions dateTimeLabelFormats
public Boolean enabled
public Boolean followPointer
public Boolean followTouchMove
public String footerFormat
@JavaScript public String formatter
public String headerFormat
public Integer hideDelay
public String pointFormat
<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>@JavaScript public String positioner
public Boolean shadow
public Boolean shared
public Integer snap
public final StyleOptions style
style: {
color: '#333333',
fontSize: '9pt',
padding: '5px'
}
public Boolean useHTML
public Integer valueDecimals
public String valuePrefix
public String valueSuffix
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.