Charts / Line chart

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

NameTypeDefaultDescription
labelsstring[]—x labels, thinned to the width.
seriesChartSeries[]—Two to four series in slot order. One y-axis only.
emphasisnumber | string—The series the story is about; the rest take --text-disabled and lose their labels.
endLabelsbooleanfour series or fewerThe value beside each line's last point.
titlesstring[]—Long period names for the ChartTooltip.
valueFormat / tickFormat(v: number) => string—Figures and y ticks.
height / widthnumber240 / measuredviewBox size.
title / subtitle / caption / ariaLabelstring—Head, closing chart__sub and the svg label.
legendbooleantrueA line-key legend from two series, with each line's latest value.
@active-change(i: number | null)—The period under the pointer or focus.