-
📊 {title}
+ {actions && (
+
+ {actions}
+
+ )}
Date: Mon, 25 Aug 2025 16:56:20 +0800
Subject: [PATCH 2/2] style: replace chart action buttons with icons
---
src/components/ChartContainer.jsx | 61 ++++++++++++++++++++++++++++---
1 file changed, 55 insertions(+), 6 deletions(-)
diff --git a/src/components/ChartContainer.jsx b/src/components/ChartContainer.jsx
index 99cda78..e886e3d 100644
--- a/src/components/ChartContainer.jsx
+++ b/src/components/ChartContainer.jsx
@@ -13,6 +13,7 @@ import {
Legend,
} from 'chart.js';
import zoomPlugin from 'chartjs-plugin-zoom';
+import { ImageDown, Copy, FileDown } from 'lucide-react';
import { getMinSteps } from "../utils/getMinSteps.js";
ChartJS.register(
@@ -666,9 +667,33 @@ export default function ChartContainer({
};
const compActions = (
<>
-
-
-
+
+
+
>
);
comparisonChart = (
@@ -692,9 +717,33 @@ export default function ChartContainer({
initialHeight={440}
actions={(
<>
-
-
-
+
+
+
>
)}
>