From 31695e534d66b0f87c286cf810f43650b1ec542c Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 19 May 2022 22:01:00 +0100 Subject: [PATCH] add todo --- src/static/js/ui/charts/ChartStackedBar.mjs | 1 + 1 file changed, 1 insertion(+) 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);