Skip to content

Commit 7c1c8eb

Browse files
bpmctclaude
andcommitted
refactor: remove tooltip from pie chart
- Removed tooltip while keeping the usage breakdown section - Removed unused Tooltip import from recharts - Keeps the original layout which shows detailed breakdown on the side 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e9ebac3 commit 7c1c8eb

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

site/src/pages/OrganizationSettingsPage/AIGovernancePage/components/AIToolsUsageChart.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import { type FC } from "react";
2-
import {
3-
Cell,
4-
Legend,
5-
Pie,
6-
PieChart,
7-
ResponsiveContainer,
8-
Tooltip,
9-
} from "recharts";
2+
import { Cell, Legend, Pie, PieChart, ResponsiveContainer } from "recharts";
103
import { aiToolsUsageData } from "../data/mockData";
114

125
interface AIToolsUsageChartProps {
@@ -50,16 +43,6 @@ export const AIToolsUsageChart: FC<AIToolsUsageChartProps> = ({
5043
/>
5144
))}
5245
</Pie>
53-
<Tooltip
54-
formatter={(value) => [`${value}%`, "Usage"]}
55-
contentStyle={{
56-
backgroundColor: "var(--surface-primary)",
57-
border: "1px solid var(--border)",
58-
borderRadius: "4px",
59-
padding: "8px 12px",
60-
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
61-
}}
62-
/>
6346
</PieChart>
6447
</ResponsiveContainer>
6548
</div>

0 commit comments

Comments
 (0)