Skip to content

The Open Source DocuSign Alternative.

feat: change legend text color to black

Ephraim Atta-Duncanfac1d34d2476
diff --git a/apps/marketing/src/app/(marketing)/open/cap-table.tsx b/apps/marketing/src/app/(marketing)/open/cap-table.tsx
index 4a7f2fd92..0aebe5da1 100644
--- a/apps/marketing/src/app/(marketing)/open/cap-table.tsx
+++ b/apps/marketing/src/app/(marketing)/open/cap-table.tsx
@@ -69,7 +69,11 @@ export const CapTable = ({ className, ...props }: CapTableProps) => {
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
))}
</Pie>
- <Legend />
+ <Legend
+ formatter={(value) => {
+ return <span className="text-sm text-black">{value}</span>;
+ }}
+ />
<Tooltip
formatter={(percent: number, name, props) => {
return [`${percent}%`, name || props['name'] || props['payload']['name']];