diff --git a/src/App.tsx b/src/App.tsx index cc35a32..17b0009 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -935,6 +935,7 @@ function App() { }, [chartSummaryBySelection, selectedContentNodes], ); + const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0; const pivotGridColumnDefs = useMemo<(ColDef | ColGroupDef)[]>( () => { const valueFormatter = ({ value }: ValueFormatterParams) => ( @@ -982,7 +983,7 @@ function App() { ], }, { - headerName: `样本统计值(${pivotGridRowData.length})`, + headerName: `样本统计值(${formatNumber(pivotGridSampleCount, 0)})`, children: [ { field: 'maxValue', @@ -1039,7 +1040,7 @@ function App() { }, ]; }, - [pivotGridRowData.length, requestMetricKey], + [pivotGridSampleCount, requestMetricKey], ); const fitPivotGridColumns = useCallback(() => { window.requestAnimationFrame(() => {