feat: change legend text color to black

This commit is contained in:
Ephraim Atta-Duncan
2023-08-17 09:44:43 +00:00
parent f3259aedea
commit 96e8962956

View File

@ -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']];