From b401698e56b128a159c6b045b18a3537644180a2 Mon Sep 17 00:00:00 2001 From: Chad Elliott Date: Mon, 16 Dec 2024 09:13:41 -0600 Subject: [PATCH] #2790 - Added a bar chart per day showing the number of responses. --- web-ui/src/pages/PulseReportPage.jsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/web-ui/src/pages/PulseReportPage.jsx b/web-ui/src/pages/PulseReportPage.jsx index 108051804..b329cc47d 100644 --- a/web-ui/src/pages/PulseReportPage.jsx +++ b/web-ui/src/pages/PulseReportPage.jsx @@ -7,7 +7,7 @@ import { CartesianGrid, Legend, Line, - LineChart, + ComposedChart, ResponsiveContainer, Tooltip, XAxis, @@ -48,7 +48,7 @@ import './PulseReportPage.css'; // Recharts doesn't support using CSS variables, so we can't // easily use color variables defined in variables.css. const ociDarkBlue = '#2c519e'; -//const ociLightBlue = '#76c8d4'; // not currently used +const ociLightBlue = '#76c8d4'; // const ociOrange = '#f8b576'; // too light const orange = '#b26801'; @@ -209,7 +209,8 @@ const PulseReportPage = () => { { date: day.date, internal: day.datapoints.reduce((acc, current) => acc + current.internalScore, 0)/day.datapoints.length, - external: day.datapoints.reduce((acc, current) => acc + current.externalScore, 0)/day.datapoints.length + external: day.datapoints.reduce((acc, current) => acc + current.externalScore, 0)/day.datapoints.length, + responses: day.datapoints.length, } ))); setBarChartData(frequencies); @@ -436,7 +437,7 @@ const PulseReportPage = () => { /> - + { { stroke={orange} type="monotone" /> - + +