diff --git a/public/ts/components/dashboard.ts b/public/ts/components/dashboard.ts index 95af8bb..b390c9c 100644 --- a/public/ts/components/dashboard.ts +++ b/public/ts/components/dashboard.ts @@ -75,12 +75,12 @@ app.component('dashboard', tooltip: { contentGenerator: function(e) { let format_line = (serie) => { - return ` - - -${serie.key} -${serie.value} - + return ` + + + ${serie.key} + ${serie.value} + `; }; @@ -90,10 +90,19 @@ app.component('dashboard', return series.filter((s) => { return s.value != 0; }); }; - return ` +return `

${e.value}

-${prepare_series(e.series).map((s) => { return format_line(s); }).join("")} + + ${prepare_series(e.series).map((s) => { return format_line(s); }).join("")} + + + + + + + +
Total${e.series.reduce((memo, serie) => { return memo + serie.value; }, 0)}
`; }