diff --git a/src/App.tsx b/src/App.tsx index 3b0236a..39fe608 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -968,6 +968,7 @@ function App() { }, [chartSummaryBySelection, selectedContentNodes], ); + const pivotGridSampleCount = pivotGridPinnedBottomRowData[0]?.dataCount ?? 0; const pivotGridColumnDefs = useMemo<(ColDef | ColGroupDef)[]>( () => { const valueFormatter = ({ value }: ValueFormatterParams) => ( @@ -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(() => {