improvement: optimize Treemap chart for large datasets (#6369)

This commit is contained in:
Prateek Shourya 2025-01-10 12:54:29 +05:30 committed by GitHub
parent 87ea13c32e
commit 8a6a5a8ca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 306 additions and 92 deletions

View file

@ -39,10 +39,10 @@ export type TreeMapItem = {
textClassName?: string;
icon?: React.ReactElement;
} & (
| {
| {
fillColor: string;
}
| {
| {
fillClassName: string;
}
);
@ -51,4 +51,23 @@ export type TreeMapChartProps = {
data: TreeMapItem[];
className?: string;
isAnimationActive?: boolean;
showTooltip?: boolean;
};
export type TTopSectionConfig = {
showIcon: boolean;
showName: boolean;
nameTruncated: boolean;
};
export type TBottomSectionConfig = {
show: boolean;
showValue: boolean;
showLabel: boolean;
labelTruncated: boolean;
};
export type TContentVisibility = {
top: TTopSectionConfig;
bottom: TBottomSectionConfig;
};