Charts
Chart tooltip
A card that opens beside the column or point under the pointer or keyboard focus and lists everything at that position.
import { EcoChartTooltip } from "vue-ecosphere"
Open on a column
Hover or focus any column: the others dim to 45% and the card lists every family, top segment first. It is aria-hidden; the hit area's label says everything. Escape closes it without moving focus.
Revenue by product family
Before tax, November 2025 – October 2026
Hardware$41.2k
Services$22.1k
Support$11.6k
The card on its own
Keys use the chart's own marks: swatches for bars and areas, line keys for lines. No total when the figures do not add up to one amount.
Stacked series, swatch keys and a total
Line series, line keys
Two signed values, no total
One value with its change
A period with no data
API
| Name | Type | Default | Description |
|---|---|---|---|
title | string | — | The period: “October 2026”, “Version 3”. |
total / unit | string | — | The headline figure and its unit. Leave out when the rows do not add up; “—” for a gap. |
rows | ChartTooltipRow[] | — | One per series, in the order the marks sit on screen (top segment first). A row without slot is a plain figure. |
note | string | — | One line of context: “Held until 1 July 2024”. |
open | boolean | false | Removes hidden. |
anchor | { x, y, half? } | — | The mark in px relative to chart__fig: 8px right of it, else left, clamped to the frame. |
inline | boolean | false | Render in flow, for documentation and static cards. |
@close | () | — | Escape was pressed while the card was open. |