Charts
Area chart
One series over time: a smoothed curve, a gradient fading from 22% to nothing, a dot on every point and a tooltip per point.
import { EcoAreaChart } from "vue-ecosphere"
Area chart
Lead with the number: the figure and its delta sit above the plot, which carries no y-axis.
Requests received
41013%
Hover a month for its figure. Cumulative per month, March – October.
In a card
The same chart, laid out at the card's width.
Requests received
41013%
Small multiples
To compare, split into small multiples rather than stacking two gradients; drop the labels and the head at this size.
Blocked
Awaiting review
API
| Name | Type | Default | Description |
|---|---|---|---|
labels | string[] | — | Period labels under the plot; the current one in accent. |
data | number[] | — | One series of volumes (never a rate or an average). |
seriesSlot | 1 | 2 | 3 | 4 | 5 | 6 | "rest" | 1 | Series slot on plot--slot. |
current | number | string | latest | Label shown as xl on. |
unit | string | — | Words after each figure in the tipbox: “requests”. |
titles | string[] | — | Long period names for each point's hit label. |
valueFormat | (v: number) => string | — | Formats the tipbox figure. |
small | boolean | false | Small multiple: no labels, a bare chart__t title. |
max | number | — | Shared scale ceiling, so small multiples compare. |
height / width | number | 250 (150 small) / measured | viewBox size. |
title / subtitle / caption / ariaLabel | string | — | Head, closing chart__sub and the svg label. Slot head replaces the head. |
emptyTitle / emptyText | string | — | chart__empty when there is no data. |