Charts / Area chart

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

NameTypeDefaultDescription
labelsstring[]—Period labels under the plot; the current one in accent.
datanumber[]—One series of volumes (never a rate or an average).
seriesSlot1 | 2 | 3 | 4 | 5 | 6 | "rest"1Series slot on plot--slot.
currentnumber | stringlatestLabel shown as xl on.
unitstring—Words after each figure in the tipbox: “requests”.
titlesstring[]—Long period names for each point's hit label.
valueFormat(v: number) => string—Formats the tipbox figure.
smallbooleanfalseSmall multiple: no labels, a bare chart__t title.
maxnumber—Shared scale ceiling, so small multiples compare.
height / widthnumber250 (150 small) / measuredviewBox size.
title / subtitle / caption / ariaLabelstring—Head, closing chart__sub and the svg label. Slot head replaces the head.
emptyTitle / emptyTextstring—chart__empty when there is no data.