diff --git a/api-editor/gui/src/features/statistics/AnnotationStatistics.tsx b/api-editor/gui/src/features/statistics/AnnotationStatistics.tsx
index 4beb729ef..aeb4fc049 100644
--- a/api-editor/gui/src/features/statistics/AnnotationStatistics.tsx
+++ b/api-editor/gui/src/features/statistics/AnnotationStatistics.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Button, Heading, SimpleGrid, VStack } from '@chakra-ui/react';
+import { Button, SimpleGrid } from '@chakra-ui/react';
import { selectAnnotationStore } from '../annotations/annotationSlice';
import { Annotation } from '../annotations/versioning/AnnotationStoreV2';
import { useAppDispatch, useAppSelector } from '../../app/hooks';
@@ -52,33 +52,26 @@ export const AnnotationStatistics = function () {
};
return (
-
-
- Annotations on Matched Elements
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
);
};
diff --git a/api-editor/gui/src/features/statistics/ApiSizeStatistics.tsx b/api-editor/gui/src/features/statistics/ApiSizeStatistics.tsx
index 1dc2dc990..213277bfd 100644
--- a/api-editor/gui/src/features/statistics/ApiSizeStatistics.tsx
+++ b/api-editor/gui/src/features/statistics/ApiSizeStatistics.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Box, Flex, Heading, VStack } from '@chakra-ui/react';
+import { Box, Flex } from '@chakra-ui/react';
import { useAppSelector } from '../../app/hooks';
import { selectRawPythonPackage } from '../packageData/apiSlice';
import { selectUsages } from '../usages/usageSlice';
@@ -26,24 +26,19 @@ export const ApiSizeStatistics = function () {
const parameterBarChart = ;
return (
-
-
- API Size
-
-
-
-
- {classBarChart}
-
-
- {functionBarChart}
-
-
- {parameterBarChart}
-
-
-
-
+
+
+
+ {classBarChart}
+
+
+ {functionBarChart}
+
+
+ {parameterBarChart}
+
+
+
);
};
diff --git a/api-editor/gui/src/features/statistics/ApiSizeVsUsefulnessStatistics.tsx b/api-editor/gui/src/features/statistics/ApiSizeVsUsefulnessStatistics.tsx
index f064b867a..d8a8cd5dd 100644
--- a/api-editor/gui/src/features/statistics/ApiSizeVsUsefulnessStatistics.tsx
+++ b/api-editor/gui/src/features/statistics/ApiSizeVsUsefulnessStatistics.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Box, Flex, Heading, VStack } from '@chakra-ui/react';
+import { Box, Flex } from '@chakra-ui/react';
import { useAppSelector } from '../../app/hooks';
import { selectRawPythonPackage } from '../packageData/apiSlice';
import { selectUsages } from '../usages/usageSlice';
@@ -43,23 +43,18 @@ export const ApiSizeVsUsefulnessStatistics = function () {
);
return (
-
-
- API Size per Minimum Usefulness Threshold
-
-
-
-
- {classLineChart}
-
-
- {functionLineChart}
-
-
- {parameterLineChart}
-
-
-
-
+
+
+
+ {classLineChart}
+
+
+ {functionLineChart}
+
+
+ {parameterLineChart}
+
+
+
);
};
diff --git a/api-editor/gui/src/features/statistics/ProgressStatistics.tsx b/api-editor/gui/src/features/statistics/ProgressStatistics.tsx
index 7bfdcfd96..00d6cdfd5 100644
--- a/api-editor/gui/src/features/statistics/ProgressStatistics.tsx
+++ b/api-editor/gui/src/features/statistics/ProgressStatistics.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Box, Heading, SimpleGrid, useColorModeValue, VStack } from '@chakra-ui/react';
+import { Box, SimpleGrid, useColorModeValue } from '@chakra-ui/react';
import { useAppSelector } from '../../app/hooks';
import { selectMatchedNodes } from '../packageData/apiSlice';
import { selectAllAnnotationsOnTargets, selectAnnotationStore } from '../annotations/annotationSlice';
@@ -74,20 +74,15 @@ export const ProgressStatistics = function () {
};
return (
-
-
- Progress on Matched Elements
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
);
};
diff --git a/api-editor/gui/src/features/statistics/QualityStatistics.tsx b/api-editor/gui/src/features/statistics/QualityStatistics.tsx
index 6a7aed885..b7503a745 100644
--- a/api-editor/gui/src/features/statistics/QualityStatistics.tsx
+++ b/api-editor/gui/src/features/statistics/QualityStatistics.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { Box, Heading, SimpleGrid, useColorModeValue, VStack } from '@chakra-ui/react';
+import { Box, SimpleGrid, useColorModeValue } from '@chakra-ui/react';
import { useAppSelector } from '../../app/hooks';
import { Pie } from 'react-chartjs-2';
@@ -13,31 +13,20 @@ export const QualityStatistics = function () {
const annotationStore = useAppSelector(selectAnnotationStore);
return (
-
-
- Quality of Autogenerated Annotations
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
);
};
diff --git a/api-editor/gui/src/features/statistics/StatisticsView.tsx b/api-editor/gui/src/features/statistics/StatisticsView.tsx
index 2000e7417..81c4853c5 100644
--- a/api-editor/gui/src/features/statistics/StatisticsView.tsx
+++ b/api-editor/gui/src/features/statistics/StatisticsView.tsx
@@ -1,5 +1,13 @@
import React from 'react';
-import { VStack } from '@chakra-ui/react';
+import {
+ Accordion,
+ AccordionButton,
+ AccordionIcon,
+ AccordionItem,
+ AccordionPanel,
+ Box,
+ VStack,
+} from '@chakra-ui/react';
import { AnnotationStatistics } from './AnnotationStatistics';
import { ApiSizeStatistics } from './ApiSizeStatistics';
import { ApiSizeVsUsefulnessStatistics } from './ApiSizeVsUsefulnessStatistics';
@@ -9,13 +17,95 @@ import { QualityStatistics } from './QualityStatistics';
export const StatisticsView: React.FC = function () {
return (
-
-
-
-
-
-
-
-
+
+
+
+
+
+ Progress on Matched Elements
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Annotations on Matched Elements
+
+
+
+
+
+
+
+
+
+
+
+
+ API Size
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ API Size per Minimum Usefulness Threshold
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Quality of Autogenerated Annotations
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Achievements
+
+
+
+
+
+
+
+
+
+
+
);
};