diff --git a/src/static/js/ui/charts/ChartStackedBar.mjs b/src/static/js/ui/charts/ChartStackedBar.mjs index 40d98b7..af12595 100644 --- a/src/static/js/ui/charts/ChartStackedBar.mjs +++ b/src/static/js/ui/charts/ChartStackedBar.mjs @@ -2,6 +2,7 @@ import { SVG } from 'svg.js'; +// TODO: Try https://plotly.com/javascript/bar-charts/ ? class ChartStackedBar { get weight_total() { return this.categories.reduce((cat, acc) => cat.weight + acc, 0);