Data display / Score

Data display

Score

Match score pill on the six-step scale, sc1 (best) to sc6.

import { EcoScore } from "vue-ecosphere"

Scale

The step is yours to choose from the figure; the colour never travels without it.

95%92%89%72%61%48%

API

NameTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 6—Required. Step on the scale: sc1 is the best match, sc6 the weakest.
valuenumber | string—The figure. A number renders as a percentage; the default slot overrides it.