Charts
Bar list
A ranked list of named values: a two-line label, the value, its share of the total and a bar scaled to the largest item.
import { EcoBarList } from "vue-ecosphere"
Top 5 of 9, with share and Show all
The order is the ranking, so it is a real ol. The share column is of the whole month, including the rows not shown.
Revenue by product line, May
Before tax. Shares are of all revenue in the month.
Each row a link
Link the name only, not the value or the bar.
Sales by region, May
Open a region to see its stores.
Two groups with a signed change, no share
Sign every value with a true minus and scale both groups to the largest absolute change.
Largest changes from April
A change is a signal to review, not an error.
Empty
Say what is missing and for when.
Revenue by sales channel, May
API
| Name | Type | Default | Description |
|---|---|---|---|
items | BarListItem[] | — | Rows in rank order: name, detail, value, display, share, href. |
title | string | — | Group title (h4.barlist__t) for two related rankings. |
limit | number | — | Show the top N and a “Show all” disclosure button. |
v-model:expanded | boolean | false | Whether every row is shown. |
noun | string | "items" | Footer caption: “Top 5 of 9 product lines”. |
total | number | — | The whole the computed shares are of, including rows not shown. |
showShare | boolean | true | Leave the share out where it means nothing, as with changes. |
scaleMax | number | — | Scale bars to one value across groups (the largest absolute change). |
valueFormat | (v: number) => string | — | Formats a value when the item has no display text. |
emptyText | string | — | barlist__empty: what is missing and for when. |