function sparkbar(
value,
max,
{ background = "steelblue", color = "white", value: showed = value } = {}
) {
return html`<div style="display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
justify-items: end;
text-align: right">
<div style="grid-area: 1 / 1 / 2 / 2;
background: ${background};
width: ${(100 * value) / max}%;"> </div>
<div style="grid-area: 1 / 1 / 2 / 2;
padding-right: 3px;
color: ${color}">${showed.toLocaleString("fr")}`;
}