class Tooltip extends Object
- Annotations
- @RawJSType() @ScalaJSDefined()
- Note
JavaScript name:
tooltip
- Alphabetic
- By Inheritance
- Tooltip
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Tooltip()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
animation: UndefOr[Boolean]
Enable or disable animation of the tooltip.
Enable or disable animation of the tooltip. In slow legacy IE browsers the animation is disabled by default.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
backgroundColor: UndefOr[|[String, Object]]
The background color or gradient for the tooltip.
The background color or gradient for the tooltip.
In styled mode, the stroke width is set in the
.highcharts-tooltip-box
class.Example: -
val
borderColor: UndefOr[|[String, Object]]
The color of the tooltip border.
The color of the tooltip border. When
null
, the border takes the color of the corresponding series or point.Example: -
val
borderRadius: UndefOr[Double]
The radius of the rounded border corners.
The radius of the rounded border corners.
Example: -
val
borderWidth: UndefOr[Double]
The pixel width of the tooltip border.
The pixel width of the tooltip border.
In styled mode, the stroke width is set in the
.highcharts-tooltip-box
class.Example: -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
crosshairs: Any
Since 1.1, the crosshair definitions are moved to the Axis object in order for a better separation from the tooltip.
Since 1.1, the crosshair definitions are moved to the Axis object in order for a better separation from the tooltip. See xAxis.crosshair.
-
val
enabled: UndefOr[Boolean]
Enable or disable the tooltip.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
followPointer: UndefOr[Boolean]
Whether the tooltip should follow the mouse as it moves across columns, pie slices and other point types with an extent.
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
plotOptions
for those series types.For touch moves to behave the same way, followTouchMove must be
true
also. -
val
followTouchMove: UndefOr[Boolean]
Whether the tooltip should follow the finger as it moves on a touch device.
Whether the tooltip should follow the finger as it moves on a touch device. If this is
true
and chart.panning is set,followTouchMove
will take over one-finger touches, so the user needs to use two fingers for zooming and panning. -
val
footerFormat: UndefOr[String]
A string to append to the tooltip format.
A string to append to the tooltip format.
Example: -
val
formatter: UndefOr[Function]
Callback function to format the text of the tooltip.
Callback function to format the text of the tooltip. Return false to disable tooltip for a specific point on series.
A subset of HTML is supported. Unless useHTML is true, the HTML of the tooltip is parsed and converted to SVG, therefore this isn't a complete HTML renderer. The following tags are supported:
<b>
,<strong>
,<i>
,<em>
,<br/>
,<span>
. Spans can be styled with astyle
attribute, but only text-related CSS that is shared with SVG is handled.Available data are: <dl>
<dt>this.point</dt>
- The point object. The point name, if defined, is available through
this.point.name
, and the value throughthis.point.value
.<dt>this.series</dt>
- The series object. The series name is available through
this.series.name
.</dl>
Example: - The point object. The point name, if defined, is available through
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
headerFormat: UndefOr[String]
The HTML of the tooltip header line.
The HTML of the tooltip header line. Variables are enclosed by curly brackets. Available variables are
point.name
,series.name
,series.color
and other members from thepoint
andseries
objects.Defaults to
<span style="font-size: 10px">{point.key}</span><br/>
Example: -
val
hideDelay: UndefOr[Double]
The number of milliseconds to wait until the tooltip is hidden when mouse out from a point or chart.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
padding: UndefOr[Double]
Padding inside the tooltip, in pixels.
Padding inside the tooltip, in pixels.
- Since
5.0.0
-
val
pointFormat: UndefOr[String]
The HTML of the point's line in the tooltip.
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.valuePrefix
andtooltip.valueSuffix
variables. 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/>'
Example: -
val
pointFormatter: UndefOr[Function]
A callback function for formatting the HTML output for a single point in the tooltip.
A callback function for formatting the HTML output for a single point in the tooltip. Like the
pointFormat
string, but with more flexibility.- Since
1.1.0
-
val
positioner: UndefOr[Function]
A callback function to place the tooltip in a default position.
A callback function to place the tooltip in a default position. The callback receives three parameters:
labelWidth
,labelHeight
andpoint
, where point contains values forplotX
andplotY
telling where the reference point is in the plot area. Addchart.plotLeft
andchart.plotTop
to get the full coordinates.The return should be an object containing x and y values, for example
{ x: 100, y: 100 }
.Example: -
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
shadow: UndefOr[Boolean]
Whether to apply a drop shadow to the tooltip.
Whether to apply a drop shadow to the tooltip.
-
val
split: UndefOr[Boolean]
Split the tooltip into one label per series, with the header close to the axis.
Split the tooltip into one label per series, with the header close to the axis. This is recommended over shared tooltips for charts with multiple line series, generally making them easier to read.
- Since
5.0.0
Example: -
val
style: UndefOr[Object]
CSS styles for the tooltip.
CSS styles for the tooltip. The tooltip can also be styled through the CSS class
.highcharts-tooltip
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
useHTML: UndefOr[Boolean]
Use HTML to render the contents of the tooltip instead of SVG.
Use HTML to render the contents of the tooltip instead of SVG. Using HTML allows advanced formatting like tables and images in the tooltip. It is also recommended for rtl languages as it works around rtl bugs in early Firefox.
Example: -
val
valueDecimals: UndefOr[Double]
How many decimals to show in each series' value.
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.
-
def
valueOf(): Any
- Definition Classes
- Object
-
val
valuePrefix: UndefOr[String]
A string to prepend to each series' value.
A string to prepend to each series' value. Overridable in each series' tooltip options object.
-
val
valueSuffix: UndefOr[String]
A string to append to each series' value.
A string to append to each series' value. Overridable in each series' tooltip options object.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )