Skip to content

Commit 88f61ca

Browse files
committed
Merge branch 'develop' into feature-2759/server-side-markdown-generation
2 parents b5e4977 + ed83bb9 commit 88f61ca

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

web-ui/src/pages/PulseReportPage.jsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
CartesianGrid,
88
Legend,
99
Line,
10-
LineChart,
10+
ComposedChart,
1111
ResponsiveContainer,
1212
Tooltip,
1313
XAxis,
@@ -48,7 +48,7 @@ import './PulseReportPage.css';
4848
// Recharts doesn't support using CSS variables, so we can't
4949
// easily use color variables defined in variables.css.
5050
const ociDarkBlue = '#2c519e';
51-
//const ociLightBlue = '#76c8d4'; // not currently used
51+
const ociLightBlue = '#76c8d4';
5252
// const ociOrange = '#f8b576'; // too light
5353
const orange = '#b26801';
5454

@@ -209,7 +209,8 @@ const PulseReportPage = () => {
209209
{
210210
date: day.date,
211211
internal: day.datapoints.reduce((acc, current) => acc + current.internalScore, 0)/day.datapoints.length,
212-
external: day.datapoints.reduce((acc, current) => acc + current.externalScore, 0)/day.datapoints.length
212+
external: day.datapoints.reduce((acc, current) => acc + current.externalScore, 0)/day.datapoints.length,
213+
responses: day.datapoints.length,
213214
}
214215
)));
215216
setBarChartData(frequencies);
@@ -436,7 +437,7 @@ const PulseReportPage = () => {
436437
/>
437438
<CardContent>
438439
<ResponsiveContainer width="100%" aspect={3.0}>
439-
<LineChart data={lineChartData} height={300}>
440+
<ComposedChart data={lineChartData} height={300}>
440441
<CartesianGrid strokeDasharray="3 3" />
441442
<XAxis
442443
angle={-90}
@@ -449,18 +450,24 @@ const PulseReportPage = () => {
449450
<Tooltip />
450451
<Legend />
451452
<Line
452-
type="monotone"
453453
dataKey="internal"
454454
stroke={ociDarkBlue}
455455
dot={false}
456+
type="monotone"
456457
/>
457458
<Line
458459
dataKey="external"
459460
dot={false}
460461
stroke={orange}
461462
type="monotone"
462463
/>
463-
</LineChart>
464+
<Bar
465+
dataKey="responses"
466+
barSize={20}
467+
fill={ociLightBlue}
468+
type="monotone"
469+
/>
470+
</ComposedChart>
464471
</ResponsiveContainer>
465472
</CardContent>
466473
</Card>

0 commit comments

Comments
 (0)