Skip to content

Commit 66bf7db

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 51a8752 commit 66bf7db

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

frontend/src/components/StatisticsChart.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const StatisticsChart = ({ reportData }: { reportData: ReportData }) => {
2222
const failed = totals.failedTests ?? 0;
2323
const errored = totals.erroredTests ?? 0;
2424
const skipped = totals.skippedTests ?? 0;
25-
25+
2626
const successCount = totalTests - (failed + errored + skipped);
2727
const score = (successCount / totalTests) * 100;
2828

@@ -44,19 +44,19 @@ export const StatisticsChart = ({ reportData }: { reportData: ReportData }) => {
4444
<h4 className="text-center mb-4" >
4545
Compliance Chart
4646
</h4>
47-
47+
4848
<div style={{ width: "100%", height: 450 }}>
4949
<ResponsiveContainer>
5050
<ScatterChart margin={{ top: 10, right: 30, bottom: 0, left: 0 }}>
51-
<XAxis type="number" dataKey="x" hide/>
52-
<YAxis
53-
type="number"
54-
dataKey="y"
51+
<XAxis type="number" dataKey="x" hide/>
52+
<YAxis
53+
type="number"
54+
dataKey="y"
5555
domain={['auto', 'auto']}
56-
tick={{ fill: "currentColor", fontSize: 15 }}
56+
tick={{ fill: "currentColor", fontSize: 15 }}
5757
/>
58-
59-
<Tooltip
58+
59+
<Tooltip
6060
content={({ active, payload }) => {
6161
if (active && payload?.length) {
6262
const item = payload[0] as { payload: { name: string; y: number } };
@@ -71,12 +71,12 @@ export const StatisticsChart = ({ reportData }: { reportData: ReportData }) => {
7171
return null;
7272
}}
7373
/>
74-
74+
7575
<ReferenceLine y={q25} stroke="#096dd9" strokeDasharray="3 3"/>
7676
<ReferenceLine y={medianScore} stroke="#389e0d" />
7777
<ReferenceLine y={q75} stroke="#cf1322" strokeDasharray="3 3"/>
7878
<ReferenceLine y={meanScore} stroke="#8c8c8c" strokeDasharray="2 2" />
79-
79+
8080
<Scatter data={chartData}>
8181
{chartData.map((entry, index) => (
8282
<Cell key={index} fill="grey" />
@@ -86,7 +86,7 @@ export const StatisticsChart = ({ reportData }: { reportData: ReportData }) => {
8686
</ResponsiveContainer>
8787
</div>
8888

89-
<div className="d-flex justify-content-center mt-3 p-2 border mx-auto"
89+
<div className="d-flex justify-content-center mt-3 p-2 border mx-auto"
9090
style={{ maxWidth: "550px" }}>
9191
<div className="mx-3 d-flex align-items-center">
9292
<div style={{ width: 12, height: 2, borderTop: "2px dashed #cf1322", marginRight: 5 }}></div>
@@ -107,4 +107,4 @@ export const StatisticsChart = ({ reportData }: { reportData: ReportData }) => {
107107
</div>
108108
</div>
109109
);
110-
};
110+
};

0 commit comments

Comments
 (0)