Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

TIP-006 Published · Updated

Chart value tooltip

A tooltip that shows the month’s value and the change from the previous month when the pointer rests on a bar in the chart or the bar is tapped.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Chart value tooltip

Chart value tooltip UI design (desktop wireframe)

Wireframe (mobile) | Chart value tooltip

Chart value tooltip UI design (mobile wireframe)

What changes on mobile

  1. Shown on tap: On mobile, where there’s no hover, the value appears when a bar is tapped and switches when another bar is tapped.
  2. Narrower gaps between bars: The gaps are narrowed so all 6 months of bars fit the screen width.
  3. The summary sentence stays: The total and busiest month below the chart are still written out on mobile.

Before you choose this pattern | Chart value tooltip

Good fit

  • You want to show a trend, such as monthly counts or sales, as a chart
  • Writing out every number would make the chart hard to read
  • Screens where people check numbers as they go, such as performance reports or dashboards

Poor fit

  • You want people to compare the numbers themselves (a numeric table works better)
  • There are only 2–3 items, and writing the numbers above the bars is enough
  • You don’t need a chart and just want to show one number large

Why this wireframe works | Chart value tooltip

It shows the bar’s value and the change from the previous month

Bar heights alone don’t give exact numbers. Above the bar under the pointer, it shows that month’s count and the change from the previous month.

Only the bar under the pointer turns darker

If it’s unclear which bar the numbers belong to, the tooltip is useless. The bar under the pointer turns a darker color to set it apart from the others.

It appears on tap and keyboard selection too

Showing it only on hover leaves mobile and keyboard users unable to check the numbers. Each bar is a button, so the tooltip also appears when it is tapped or selected with the keyboard.

Key figures are written in text below the chart

Numbers that only show up in a tooltip get missed. The total and the busiest month are written in text below the chart.

Common mistakes when building it

Putting the numbers only inside the tooltip

People who never open the tooltip, and screen reader users, won’t get the numbers. Write the key figures in the text, and provide the table behind the chart as well.

Thin bars that are hard to hover

Thin bars take effort to land the pointer on. Make the hover area wider than the bar.

The tooltip spills out of the chart

If the tooltip for a bar at the right or top edge gets cut off, the numbers can’t be read. Shift it inward when it would overflow.

Telling series apart by color alone

When several series differ only in color, it’s hard to tell which series a tooltip belongs to. Write the series name in the tooltip too.

Showing chart values only on hover

Write the chart’s key point in the text and provide a table or data list where exact values can be checked. Keep the tooltip as a supplement that also opens on focus.

Frequently asked questions

How should chart values be conveyed to screen readers?

Give each bar a name such as “August 2026” and link the tooltip’s values with aria-describedby. Also provide the table the chart is based on, or write the key points, such as the total and changes, in text.

How should the tooltip appear on mobile?

Show it when a bar is tapped, and switch when another bar is tapped. Bars get narrow, so make the tap area wider than the bar.

Can I use the tooltip that comes with a charting library as is?

You can, but whether bars can be selected with the keyboard and whether screen readers announce the values varies by library. Before using it, check that you can select the bars with the keyboard.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published