mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
feat: change legend text color to black
This commit is contained in:
committed by
Mythie
parent
c841c989aa
commit
fac1d34d24
@ -69,7 +69,11 @@ export const CapTable = ({ className, ...props }: CapTableProps) => {
|
|||||||
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
<Cell key={`cell-${index}`} fill={COLORS[index % COLORS.length]} />
|
||||||
))}
|
))}
|
||||||
</Pie>
|
</Pie>
|
||||||
<Legend />
|
<Legend
|
||||||
|
formatter={(value) => {
|
||||||
|
return <span className="text-sm text-black">{value}</span>;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
formatter={(percent: number, name, props) => {
|
formatter={(percent: number, name, props) => {
|
||||||
return [`${percent}%`, name || props['name'] || props['payload']['name']];
|
return [`${percent}%`, name || props['name'] || props['payload']['name']];
|
||||||
|
|||||||
Reference in New Issue
Block a user