Configures the ToolTips in the chart.
Options for customizing the tooltip borders.
number
Duration for the Tooltip animation.
Defaults to 300
boolean
If set to true, enables the tooltip for the data points.
Defaults to false.
boolean
If set to true, tooltip will animate while moving from one point to another.
Defaults to true.
boolean
If set to true, enables the marker in the chart tooltip.
Defaults to true.
boolean
To wrap the tooltip long text based on available space. This is only application for chart tooltip.
Defaults to false
number
Duration of the fade-out animation for hiding the Tooltip.
Defaults to 1000
Fade Out duration for the Tooltip hide.
Defaults to Move
string
The fill color of the tooltip, specified as a valid CSS color string in hex or rgba format.
Defaults to null
string
The format for customizing the tooltip content.
Defaults to null.
string
The header text for the tooltip. By default, it displays the series name.
Defaults to null
Specifies the location of the tooltip, relative to the chart. If x is 20, tooltip moves by 20 pixels to the right of the chart
<div id='Chart'></div>
let chart: Chart = new Chart({
...
tooltipSettings: {
enable: true,
location: { x: 100, y: 150 },
},
...
});
chart.appendTo('#Chart');
number
The opacity of the tooltip, expressed as a numerical value.
Defaults to null
string
| Function
A custom template used to format the Tooltip content. You can use ${x} and ${y} as placeholder text to display the corresponding data points.
Defaults to null.
Options for customizing the tooltip text appearance.