Charts
Line chart
Change over time: a 2px line per series, a dot on the last point and the value beside it.
import { EcoLineChart } from "vue-ecosphere"
Three series
Label the end of each line rather than every point; the axis carries the rest. Focus a month for every series' value.
Requests by outcome
March – October
Replied78
Awaiting review41
Blocked11
Emphasis
One line in its slot colour, the rest in --text-disabled: almost always clearer than several colours competing.
Blocked requests
The one series the story is about; the rest are context
Eleven in October, down from twenty-two in April.
API
| Name | Type | Default | Description |
|---|---|---|---|
labels | string[] | — | x labels, thinned to the width. |
series | ChartSeries[] | — | Two to four series in slot order. One y-axis only. |
emphasis | number | string | — | The series the story is about; the rest take --text-disabled and lose their labels. |
endLabels | boolean | four series or fewer | The value beside each line's last point. |
titles | string[] | — | Long period names for the ChartTooltip. |
valueFormat / tickFormat | (v: number) => string | — | Figures and y ticks. |
height / width | number | 240 / measured | viewBox size. |
title / subtitle / caption / ariaLabel | string | — | Head, closing chart__sub and the svg label. |
legend | boolean | true | A line-key legend from two series, with each line's latest value. |
@active-change | (i: number | null) | — | The period under the pointer or focus. |