From e4a1154032f7e9dcd9d215adb38f757cc3235cfa Mon Sep 17 00:00:00 2001 From: e26chiu Date: Mon, 30 Jan 2023 21:50:50 -0500 Subject: [PATCH] Fix tooltip formatting + calibrate data --- data/academics.ts | 126 ++++++++++++++++++++++---------------------- pages/academics.tsx | 1 + pages/coop.tsx | 4 +- 3 files changed, 67 insertions(+), 64 deletions(-) diff --git a/data/academics.ts b/data/academics.ts index 514493a..460380b 100644 --- a/data/academics.ts +++ b/data/academics.ts @@ -1242,101 +1242,101 @@ export const A15 = [ export const A16 = [ { category: "1A", - "0-30": 0.04, + "0-30": 4, "30-60": 0, - "60-70": 0.04, - "70-80": 0.152, - "80-90": 0.495, - "90-95": 0.192, - "95-100": 0.081, + "60-70": 4, + "70-80": 15.2, + "80-90": 49.5, + "90-95": 19.2, + "95-100": 8.1, }, { category: "1B", - "0-30": 0.04, - "30-60": 0.01, - "60-70": 0.091, - "70-80": 0.232, - "80-90": 0.434, - "90-95": 0.121, - "95-100": 0.071, + "0-30": 4, + "30-60": 1, + "60-70": 9.1, + "70-80": 23.2, + "80-90": 43.4, + "90-95": 12.1, + "95-100": 7.1, }, { category: "2A", - "0-30": 0.0208, - "30-60": 0.0312, - "60-70": 0.052, - "70-80": 0.2604, - "80-90": 0.4479, - "90-95": 0.1354, - "95-100": 0.0417, + "0-30": 2.08, + "30-60": 3.12, + "60-70": 5.2, + "70-80": 26.04, + "80-90": 44.79, + "90-95": 13.54, + "95-100": 4.17, }, { category: "2B", - "0-30": 0.051, + "0-30": 5.1, "30-60": 0, - "60-70": 0.112, - "70-80": 0.296, - "80-90": 0.378, - "90-95": 0.133, - "95-100": 0.031, + "60-70": 11.2, + "70-80": 29.6, + "80-90": 37.8, + "90-95": 13.3, + "95-100": 3.1, }, { category: "3A", - "0-30": 0.032, - "30-60": 0.033, - "60-70": 0.032, - "70-80": 0.149, - "80-90": 0.447, - "90-95": 0.245, - "95-100": 0.064, + "0-30": 3.2, + "30-60": 3.3, + "60-70": 3.2, + "70-80": 14.9, + "80-90": 44.7, + "90-95": 24.5, + "95-100": 6.4, }, { category: "3B", - "0-30": 0.033, - "30-60": 0.033, - "60-70": 0.043, - "70-80": 0.108, - "80-90": 0.355, - "90-95": 0.312, - "95-100": 0.118, + "0-30": 3.3, + "30-60": 3.3, + "60-70": 4.3, + "70-80": 10.8, + "80-90": 35.5, + "90-95": 31.2, + "95-100": 11.8, }, { category: "4A", - "0-30": 0.011, - "30-60": 0.032, - "60-70": 0.053, - "70-80": 0.129, - "80-90": 0.355, - "90-95": 0.312, - "95-100": 0.108, + "0-30": 1.1, + "30-60": 3.2, + "60-70": 5.3, + "70-80": 12.9, + "80-90": 35.5, + "90-95": 31.2, + "95-100": 10.8, }, { category: "4B", - "0-30": 0.011, - "30-60": 0.033, - "60-70": 0.023, - "70-80": 0.149, - "80-90": 0.241, - "90-95": 0.138, - "95-100": 0.092, + "0-30": 1.1, + "30-60": 3.3, + "60-70": 2.3, + "70-80": 14.9, + "80-90": 24.1, + "90-95": 13.8, + "95-100": 9.2, }, { category: "5A", - "0-30": 0.02, - "30-60": 0.04, - "60-70": 0.02, - "70-80": 0.039, - "80-90": 0.137, + "0-30": 2, + "30-60": 4, + "60-70": 2, + "70-80": 3.9, + "80-90": 13.7, "90-95": 0, - "95-100": 0.059, + "95-100": 5.9, }, { category: "CAV", "0-30": 0, "30-60": 0, - "60-70": 0.03774, - "70-80": 0.28302, - "80-90": 0.67924, + "60-70": 3.774, + "70-80": 28.302, + "80-90": 67.924, "90-95": 0, "95-100": 0, }, diff --git a/pages/academics.tsx b/pages/academics.tsx index d81dc40..6a23754 100644 --- a/pages/academics.tsx +++ b/pages/academics.tsx @@ -281,6 +281,7 @@ export default function Academics() { ]} data={A16} margin={barGraphMargin} + displayPercentage={true} /> diff --git a/pages/coop.tsx b/pages/coop.tsx index 73da4a2..3a79a27 100644 --- a/pages/coop.tsx +++ b/pages/coop.tsx @@ -216,7 +216,7 @@ export default function CoopPage() { {/* C7v */}