add todo
This commit is contained in:
parent
6b2aab3391
commit
31695e534d
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import { SVG } from 'svg.js';
|
import { SVG } from 'svg.js';
|
||||||
|
|
||||||
|
// TODO: Try https://plotly.com/javascript/bar-charts/ ?
|
||||||
class ChartStackedBar {
|
class ChartStackedBar {
|
||||||
get weight_total() {
|
get weight_total() {
|
||||||
return this.categories.reduce((cat, acc) => cat.weight + acc, 0);
|
return this.categories.reduce((cat, acc) => cat.weight + acc, 0);
|
||||||
|
|
Loading…
Reference in a new issue