mirror of
https://github.com/gwenhael-le-moine/credger.git
synced 2024-12-26 09:58:36 +01:00
total in global graph tooltip
This commit is contained in:
parent
9a16fa1069
commit
923957aab4
1 changed files with 17 additions and 8 deletions
|
@ -93,7 +93,16 @@ app.component('dashboard',
|
||||||
return `
|
return `
|
||||||
<h2>${e.value}</h2>
|
<h2>${e.value}</h2>
|
||||||
<table>
|
<table>
|
||||||
|
<tbody>
|
||||||
${prepare_series(e.series).map((s) => { return format_line(s); }).join("")}
|
${prepare_series(e.series).map((s) => { return format_line(s); }).join("")}
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
<td style="text-align: right; text-decoration: underline; font-weight: bold;">Total</td>
|
||||||
|
<td style="text-align: right; font-weight: bold;">${e.series.reduce((memo, serie) => { return memo + serie.value; }, 0)}</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue