1
This commit is contained in:
parent
559a296c3a
commit
92f2584232
@ -968,6 +968,7 @@ function App() {
|
|||||||
},
|
},
|
||||||
[chartSummaryBySelection, selectedContentNodes],
|
[chartSummaryBySelection, selectedContentNodes],
|
||||||
);
|
);
|
||||||
|
const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0;
|
||||||
const pivotGridColumnDefs = useMemo<(ColDef<PivotGridRow> | ColGroupDef<PivotGridRow>)[]>(
|
const pivotGridColumnDefs = useMemo<(ColDef<PivotGridRow> | ColGroupDef<PivotGridRow>)[]>(
|
||||||
() => {
|
() => {
|
||||||
const valueFormatter = ({ value }: ValueFormatterParams<PivotGridRow, number | null>) => (
|
const valueFormatter = ({ value }: ValueFormatterParams<PivotGridRow, number | null>) => (
|
||||||
@ -1015,7 +1016,7 @@ function App() {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headerName: `样本统计值(${pivotGridRowData.length})`,
|
headerName: `样本统计值(${formatNumber(pivotGridSampleCount, 0)})`,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
field: 'maxValue',
|
field: 'maxValue',
|
||||||
@ -1072,7 +1073,7 @@ function App() {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
[pivotGridRowData.length, requestMetricKey],
|
[pivotGridSampleCount, requestMetricKey],
|
||||||
);
|
);
|
||||||
const fitPivotGridColumns = useCallback(() => {
|
const fitPivotGridColumns = useCallback(() => {
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user