diff --git a/frontend/src/components/LoadingOverlay.jsx b/frontend/src/components/LoadingOverlay.jsx
index 23f51aa..14374e6 100644
--- a/frontend/src/components/LoadingOverlay.jsx
+++ b/frontend/src/components/LoadingOverlay.jsx
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
const LoadingOverlay = ({ message }) => (
{
const transientTypes = rawData
.map((item) => item.objectType)
.map((type) => type.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'));
- setTransientTypes(transientTypes);
+ setTransientTypes(transientTypes);
} catch (err) {
setError("Failed to fetch data");
} finally {
@@ -35,10 +35,33 @@ const Statistics = () => {
return (
-
+
+ {transientTypes.length > 0 ? (
+ transientTypes.slice(0, 6).map((type, index) => (
+
+
+
+ ))
+ ) : (
+
No data available
+ )}
+
);
};
diff --git a/frontend/src/components/charts/ObjectTypeProportionPieChart.jsx b/frontend/src/components/charts/ObjectTypeProportionPieChart.jsx
index f15d5c1..a5514db 100644
--- a/frontend/src/components/charts/ObjectTypeProportionPieChart.jsx
+++ b/frontend/src/components/charts/ObjectTypeProportionPieChart.jsx
@@ -18,7 +18,7 @@ const ObjectTypeProportionPieChart = ({ label, dataList }) => {
return (