From 3008a02553fc7ef372fe625118e9a86cd9ce03b9 Mon Sep 17 00:00:00 2001 From: Inferencebot Date: Fri, 13 Nov 2026 21:26:27 +0000 Subject: [PATCH] coop_chart: one concise chart vocabulary for both apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Members · Requests · Spend · Money · Energy · Carbon. The titles were carrying the unit ('Requests per day', 'Token spend per day') while the axis already labels the unit, so the menus read long and the two apps said different things in different places. The aria label still reads ' over time'. --- scripts/shared/coop_chart.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/shared/coop_chart.js b/scripts/shared/coop_chart.js index 7124a74..19c6622 100644 --- a/scripts/shared/coop_chart.js +++ b/scripts/shared/coop_chart.js @@ -276,9 +276,9 @@ const CHART_METRICS = [ { id: "members", title: "Members", kind: "line", cont: false, fmt: "count", val: r => r.members_total }, - { id: "requests", title: "Requests per day", kind: "bar", cont: false, fmt: "count", + { id: "requests", title: "Requests", kind: "bar", cont: false, fmt: "count", val: r => r.requests }, - { id: "spend", title: "Token spend per day", kind: "bar", cont: true, fmt: "money", + { id: "spend", title: "Spend", kind: "bar", cont: true, fmt: "money", val: r => r.spend_usd }, { id: "money", title: "Money", kind: "multi", cont: true, fmt: "money", aria: "Cumulative revenue, token spend and OC balance over time", @@ -287,9 +287,9 @@ { name: "Token spend", key: "spend_cum", color: "#4a6a8a" }, { name: "OC balance", key: "oc_balance", color: "#a97a2a", dotSingle: true } ] }, - { id: "energy", title: "Energy per day", kind: "bar", cont: true, fmt: "wh", + { id: "energy", title: "Energy", kind: "bar", cont: true, fmt: "wh", val: r => r.energy_wh }, - { id: "co2e", title: "Carbon per day", kind: "bar", cont: true, fmt: "g", + { id: "co2e", title: "Carbon", kind: "bar", cont: true, fmt: "g", val: r => r.co2e_g } ];