import hbs from 'htmlbars-inline-precompile'; export default { title: 'Components|Metrics', }; export let Standard = () => { return { template: hbs`
12
Metrics are a way to show simple values (generally numbers). Labels are smaller than numbers to put emphasis on the data.
`, }; }; export let Groups = () => { return { template: hbs`1 / 2
1,300
dc1
81º
73º
Related metrics should be lumped together in metric groups. All metrics have to be in a metric group. By putting multiple metrics in a single group, they will be visually lumped together.
`, }; }; export let Colors = () => { return { template: hbs`1
2
3
4
5
6
7
8
9
All color-modifiers work for metrics, but some work better than others.
Emotive colors work well and are put to use when applicable. Other colors have worse support and less utility.
`, }; }; export let States = () => { return { template: hbs`A
B
C
A
B
C
Metrics have a disabled state. This is used when a metric is non-existent or irrelevant. It's just as important to show the lack of value as it is to show a value, so simply not rendering non-existent or irrelevant metrics would be worse.
`, }; };