diff --git a/src/pages/StatisticsChart/activities/CellCount.tsx b/src/pages/StatisticsChart/activities/CellCount.tsx index d42a75093..f23305539 100644 --- a/src/pages/StatisticsChart/activities/CellCount.tsx +++ b/src/pages/StatisticsChart/activities/CellCount.tsx @@ -99,6 +99,11 @@ const useOption = ( name: t('statistic.dead_cell'), }, ], + selected: { + [t('statistic.all_cells')]: false, + [t('statistic.live_cell')]: true, + [t('statistic.dead_cell')]: false, + }, }, grid: isThumbnail ? gridThumbnail : grid, dataZoom: isThumbnail ? [] : DATA_ZOOM_CONFIG, diff --git a/src/pages/StatisticsChart/block/AverageBlockTime.tsx b/src/pages/StatisticsChart/block/AverageBlockTime.tsx index 4f31c6259..34f96fd9b 100644 --- a/src/pages/StatisticsChart/block/AverageBlockTime.tsx +++ b/src/pages/StatisticsChart/block/AverageBlockTime.tsx @@ -80,7 +80,7 @@ const useOption = ( : undefined, grid: isThumbnail ? gridThumbnail : grid, /* Selection starts from 1% because the average block time is extremely high on launch */ - dataZoom: isThumbnail ? [] : DATA_ZOOM_CONFIG.map(zoom => ({ ...zoom, start: 1 })), + dataZoom: DATA_ZOOM_CONFIG.map(zoom => ({ ...zoom, show: !isThumbnail, start: 1 })), xAxis: [ { name: isMobile || isThumbnail ? '' : t('statistic.date'), diff --git a/src/pages/StatisticsChart/mining/UncleRate.tsx b/src/pages/StatisticsChart/mining/UncleRate.tsx index ff3f7abb1..e1f12c3d1 100644 --- a/src/pages/StatisticsChart/mining/UncleRate.tsx +++ b/src/pages/StatisticsChart/mining/UncleRate.tsx @@ -52,7 +52,8 @@ const useOption = ( } : undefined, grid: isThumbnail ? gridThumbnail : grid, - dataZoom: isThumbnail ? [] : DATA_ZOOM_CONFIG, + /* Selection starts from 1% because the uncle rate starts from 0 on launch */ + dataZoom: DATA_ZOOM_CONFIG.map(zoom => ({ ...zoom, show: !isThumbnail, start: 1 })), xAxis: [ { name: isMobile || isThumbnail ? '' : t('statistic.date'),