ToolTip in React Sankey Chart component
20 Jun 202624 minutes to read
The Sankey Chart provides tooltips that surface contextual details for hovered elements without cluttering the diagram. Tooltips display additional information when users hover over nodes or links in the Sankey Chart. You can enable and customize tooltips using the tooltip property and by injecting the SankeyTooltip module.
This guide outlines how to enable and customize tooltips in the React Sankey Chart.
Tooltip Settings Properties
The following table lists the main tooltip configuration properties:
| Property | Type | Default | Description |
|---|---|---|---|
| enable | boolean | true | Enables or disables the tooltip display. |
| fill | string | null | Background fill color of the tooltip. |
| opacity | number | 0.75 | Opacity of the tooltip container (0 to 1). |
| textStyle | object | null | Text styling for the tooltip content. |
| nodeFormat | string | ‘$name : $value’ | Format string for node tooltips. |
| linkFormat | string | ‘$start.name $start.value → $target.name $target.value’ | Format string for link tooltips. |
| enableAnimation | boolean | true | Toggles tooltip animation. |
| duration | number | 300 | Animation duration in milliseconds. |
| fadeOutDuration | number | 1000 | Fade-out duration in milliseconds. |
| fadeOutMode | string | ‘Move’ | Fade-out animation mode (‘Move’, ‘Fade’, ‘Delay’). |
Basic Tooltip Configuration
Enable tooltips with default formatting:
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyExport,
SankeyTooltip,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section" id="sankey-container">
<SankeyComponent
width="90%"
height="450px"
tooltip={{ enable: true }}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyExport,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section">
<SankeyComponent
width="90%"
height="450px"
tooltip={{ enable: true }}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));Customizing Tooltip Appearance
Adjust tooltip appearance and behavior using tooltip configuration properties:
- Enable: Shows or hides tooltips.
- Fill: Sets background color.
- Opacity: Controls transparency (0 to 1). The default value is 0.75.
- TextStyle: Configures font size, family, weight, and color for the tooltip text.
- EnableAnimation: Toggles animation. Default: true.
- Duration: Animation duration in milliseconds. The default value is 300.
- FadeOutDuration: Fade-out duration in milliseconds. The default value is 1000.
Example customization:
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyExport,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section">
<SankeyComponent
id="sankey-container"
width="90%"
height="450px"
tooltip={{
enable: true,
textStyle: {
fontFamily: 'Arial',
fontStyle: 'normal',
fontWeight: '500',
fontSize: '14px',
color: '#000'
},
fill: '#F3F3F3'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyExport,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section">
<SankeyComponent
id="sankey-container"
width="90%"
height="450px"
tooltip={{
enable: true,
textStyle: {
fontFamily: 'Arial',
fontStyle: 'normal',
fontWeight: '500',
fontSize: '14px',
color: '#000'
},
fill: '#F3F3F3'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));Format Strings
Format strings provide a simple way to customize tooltip content without requiring custom templates.
Node Tooltip Format
Format string placeholders for node tooltips:
-
$name- Node name/label -
$value- Node value (sum of incoming links)
Link Tooltip Format
Format string placeholders for link tooltips:
-
$start.name- Source node name -
$start.value- Source node value -
$target.name- Target node name -
$target.value- Target node value -
$value- Link value
Example with custom format strings:
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyExport,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section" id="sankey-container">
<SankeyComponent
width="90%"
height="450px"
tooltip={{
enable: true,
nodeTemplate: '${name}: ${value} TBtu',
linkTemplate: '${start.name}: ${start.out} TBtu → ${target.name}: ${target.in} TBtu'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyExport,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section" id="sankey-container">
<SankeyComponent
width="90%"
height="450px"
tooltip={{
enable: true,
nodeTemplate: '${name}: ${value} TBtu',
linkTemplate: '${start.name}: ${start.out} TBtu → ${target.name}: ${target.in} TBtu'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));Inline tooltip formatting
The tooltip content can be formatted directly within the nodeFormat and linkFormat properties by adding DateTime or number format specifiers to supported tooltip tokens. This allows you to control how node and link values are displayed without using additional events.
A format specifier is applied by adding a colon (:) followed by the required format. Sankey tooltip supports both $ placeholders and ${} placeholders for displaying tooltip values. When a value needs to be formatted, use the ${} placeholder syntax with a colon (:) followed by the required format specifier.
For example:
const tooltip = {
enable: true,
nodeFormat: '$name : ${value:n2}',
linkFormat: '$start.name (${start.out:n2}) → ${target.name} (${target.in:n2}) : ${value:n2}'
}In the above example, $name and $start.name display text values directly, while ${value:n2}, ${start.out:n2}, and ${target.in:n2} display numeric values with two decimal places.
Sankey tooltip values can be displayed in either of the following ways:
-
$start.nameor${start.name}– Displays the source node name. -
$target.nameor${target.name}– Displays the target node name. -
$valueor${value}– Displays the node or link value.
To apply formatting, use the ${} syntax with the required format specifier. For example, ${value:n2} displays the value with two decimal places.
Inline formatting can be applied to the following tooltip placeholders:
-
$nameor${name}– Specifies the name or label of the hovered node. -
$value,${value}, or${value:n2}– Specifies the value of the hovered node or link. -
$start.nameor${start.name}– Specifies the name of the source node in a link tooltip. -
$start.value,${start.value}, or${start.value:n2}– Specifies the value of the source node in a link tooltip. -
$start.out,${start.out}, or${start.out:n2}– Specifies the outgoing value from the source node in a link tooltip. -
$target.nameor${target.name}– Specifies the name of the target node in a link tooltip. -
$target.value,${target.value}, or${target.value:n2}– Specifies the value of the target node in a link tooltip. -
$target.in,${target.in}, or${target.in:n2}– Specifies the incoming value to the target node in a link tooltip.
Important: Sankey tooltip placeholders can be used in both $placeholder and ${placeholder} formats, such as $start.name or ${start.name}. However, when applying number formatting, the ${placeholder:format} syntax must be used, such as ${value:n2}, ${start.out:n2}, and ${target.in:n2}. Formatting is applied only when the resolved value supports the specified format. String tokens, such as ${name}, ${start.name}, and ${target.name}, are displayed as plain text and do not support number formatting.
The following number formats are supported:
-
n2– number with two decimal places -
n0– number without decimals -
c2– currency format -
p1– percentage format -
e1– exponential notation
If the specified format does not match the resolved value type, the original value is displayed.
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section" id="sankey-container">
<SankeyComponent
width="90%"
height="450px"
tooltip={{
enable: true,
nodeFormat: '${name} : ${value:n2} TBtu',
linkFormat: '${start.name} : ${start.out:n2} TBtu → ${target.name} : ${target.in:n2} TBtu<br>Flow: ${value:n2} TBtu'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
return (
<div className="control-pane">
<div className="control-section" id="sankey-container">
<SankeyComponent
width="90%"
height="450px"
tooltip={{
enable: true,
nodeFormat: '${name} : ${value:n2} TBtu',
linkFormat: '${start.name} : ${start.out:n2} TBtu → ${target.name} : ${target.in:n2} TBtu<br>Flow: ${value:n2} TBtu'
}}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));Advanced Tooltip Configuration
Tooltip Rendering Event
Use the tooltipRendering event to customize tooltip content dynamically and enable custom logic based on specific conditions:
import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyLegend,
SankeyExport,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
function App() {
const onTooltipRendering = (args) => {
// Customize tooltip content dynamically
if (args.data.name === 'link') {
args.content = `Flow: ${args.data.sourceNodeName} → ${args.data.targetNodeName} (${args.data.value})`;
} else {
args.content = `Node: ${args.data.name}`;
}
};
return (
<div className="control-pane">
<div className="control-section">
<SankeyComponent
id="sankey-container"
width="90%"
height="450px"
tooltip={{ enable: true }}
tooltipRendering={onTooltipRendering}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));import * as React from "react";
import * as ReactDOM from "react-dom";
import {
SankeyComponent,
Inject,
SankeyTooltip,
SankeyExport,
SankeyLegend,
SankeyNodeDirective,
SankeyNodesCollectionDirective,
SankeyLinkDirective,
SankeyLinksCollectionDirective
} from '@syncfusion/ej2-react-charts';
import { SankeyNodeModel, SankeyLinkModel, SankeyTooltipRenderEventArgs } from '@syncfusion/ej2-react-charts';
function App() {
const onTooltipRendering = (args: SankeyTooltipRenderEventArgs) => {
// Customize tooltip content dynamically
if (args.link) {
args.text = `Flow: ${args.link.sourceId} → ${args.link.targetId} (${args.link.value})`;
} else {
args.text = `Node: ${args.node.label}`;
}
};
return (
<div className="control-pane">
<div className="control-section">
<SankeyComponent
id="sankey-container"
width="90%"
height="450px"
tooltip={{ enable: true }}
tooltipRendering={onTooltipRendering}
>
<SankeyNodesCollectionDirective>
<SankeyNodeDirective id="Agricultural Waste" />
<SankeyNodeDirective id="Biomass Residues" />
<SankeyNodeDirective id="Bio-conversion" />
<SankeyNodeDirective id="Liquid Biofuel" />
<SankeyNodeDirective id="Electricity" />
<SankeyNodeDirective id="Heat" />
</SankeyNodesCollectionDirective>
<SankeyLinksCollectionDirective>
<SankeyLinkDirective sourceId="Agricultural Waste" targetId="Bio-conversion" value={84.152} />
<SankeyLinkDirective sourceId="Biomass Residues" targetId="Bio-conversion" value={24.152} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Liquid Biofuel" value={10.597} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Electricity" value={36.862} />
<SankeyLinkDirective sourceId="Bio-conversion" targetId="Heat" value={60.845} />
</SankeyLinksCollectionDirective>
<Inject services={[SankeyTooltip, SankeyLegend, SankeyExport]} />
</SankeyComponent>
</div>
</div>
);
}
export default App;
ReactDOM.render(<App />, document.getElementById('sankey'));Disabling Tooltips
To disable tooltips, set the enable property to false:
const tooltip = { enable: false };Key Considerations
- Keep Text Concise: Keep tooltip text concise and readable.
- Ensure Contrast: Ensure sufficient contrast for tooltip text and background.
-
Use Format Strings: Prefer
nodeFormatandlinkFormatfor simple content customization without requiring custom rendering logic. - Animation Tuning: Tune animation durations to balance responsiveness and polish.
- Performance: Use format strings instead of complex rendering logic for better performance.
- Relevant Information: Show only relevant and helpful information.
- Consistent Styling: Maintain consistent tooltip styling across your application.