improvement: optimize Treemap chart for large datasets (#6369)
This commit is contained in:
parent
87ea13c32e
commit
8a6a5a8ca7
4 changed files with 306 additions and 92 deletions
23
packages/types/src/charts.d.ts
vendored
23
packages/types/src/charts.d.ts
vendored
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue