diff --git a/Client/src/Pages/PageSpeed/Details/index.jsx b/Client/src/Pages/PageSpeed/Details/index.jsx
index 44f622a1b..f5671be2e 100644
--- a/Client/src/Pages/PageSpeed/Details/index.jsx
+++ b/Client/src/Pages/PageSpeed/Details/index.jsx
@@ -58,23 +58,27 @@ const StatBox = ({ icon, title, value }) => {
* @param {string} props.color - The color of the text.
* @returns {JSX.Element}
*/
-const PieCenterLabel = ({ value, color }) => {
+const PieCenterLabel = ({ value, color, setExpand }) => {
const { width, height } = useDrawingArea();
return (
- setExpand(true)}
>
- {value}
-
+
+
+ {value}
+
+
);
};
@@ -305,11 +309,13 @@ const PageSpeedDetails = () => {
return props;
};
- const pieSize = { width: 300, height: 205 };
+ const pieSize = { width: 200, height: 200 };
const pieData = getPieData(data.audits);
const colorMap = getColors(performance);
const [highlightedItem, setHighLightedItem] = useState(null);
+ const [expand, setExpand] = useState(false);
+ console.log(expand);
return (
@@ -419,82 +425,94 @@ const PageSpeedDetails = () => {
Performance report
- setExpand(false)}>
+ {expand ? (
+
+
+ {pieData?.map((pie) => (
+
+ ))}
+
+ ) : (
+
-
-
-
-
- {pieData?.map((pie) => (
-
- ))}
-
+ ]}
+ width={pieSize.width}
+ height={pieSize.height}
+ margin={{ left: 0, top: 0, right: 0, bottom: 0 }}
+ tooltip={{ trigger: "none" }}
+ >
+
+
+ )}
+
Performance