Skip to main content

Tooltips and Data Labels

Tooltips and data labels are essential features for displaying detailed information about data points in your charts.

Tooltips

Tooltips appear when users hover over data points, providing contextual information about the data.

Basic Tooltip Configuration

Tooltip Positioning

Tooltip Formatting

Customize tooltip content using formatters:
Or use format strings (from ts/Core/TooltipOptions.ts:89-150):

Shared Tooltips

Display information for multiple series in one tooltip:

Split Tooltips

Show separate tooltip boxes for each series:

Advanced Tooltip Features

1

Sticky Tooltips

Keep tooltips visible on touch devices:
2

Animation

Control tooltip animation:
3

HTML Tooltips

Use HTML for rich formatting:

Data Labels

Data labels display values directly on the chart, making data immediately visible without interaction.

Basic Data Labels

Data Label Positioning

Custom Data Label Formatting

Data Labels Styling

Data Labels for Specific Points

Tooltip vs Data Labels

Real-World Example

From the drilldown demo (samples/highcharts/demo/column-drilldown/demo.js:41-44):

Best Practices

Tooltip Performance
  • Use animation: false for charts with frequent updates
  • Consider outside: true for better performance with complex layouts
  • Use format strings instead of formatters when possible for better performance
Data Label Considerations
  • Too many data labels can make charts cluttered and hard to read
  • Use conditional formatting to show only important values
  • Ensure sufficient contrast between labels and background
  • Test on different screen sizes to avoid overlap