This commit is contained in:
zwgczx committed 2026-08-12 10:16:35 +08:00
1 parent 559a296c3a
commit 92f2584232
1 file changed
+3 -2
+3 -2
View File
@@ -968,6 +968,7 @@ function App() {
},
[chartSummaryBySelection, selectedContentNodes],
);
const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0;
const pivotGridColumnDefs = useMemo<(ColDef<PivotGridRow> | ColGroupDef<PivotGridRow>)[]>(
() => {
const valueFormatter = ({ value }: ValueFormatterParams<PivotGridRow, number | null>) => (
@@ -1015,7 +1016,7 @@ function App() {
],
},
{
headerName: `样本统计值(${pivotGridRowData.length})`,
headerName: `样本统计值(${formatNumber(pivotGridSampleCount, 0)})`,
children: [
{
field: 'maxValue',
@@ -1072,7 +1073,7 @@ function App() {
},
];
},
[pivotGridRowData.length, requestMetricKey],
[pivotGridSampleCount, requestMetricKey],
);
const fitPivotGridColumns = useCallback(() => {
window.requestAnimationFrame(() => {