Skip to content

Commit

Permalink
feat: set start point of selection of avg-block-time 1%
Browse files Browse the repository at this point in the history
Selection starts from 1% because the avg block time is
extremely high on blockchain launch

Ref: nervosnetwork#1350
  • Loading branch information
Keith-CY committed Nov 4, 2023
1 parent 634d0cc commit f629561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/StatisticsChart/block/AverageBlockTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ const useOption = (
}
: undefined,
grid: isThumbnail ? gridThumbnail : grid,
dataZoom: isThumbnail ? [] : DATA_ZOOM_CONFIG,
/* Selection starts from 1% because the average block time is extremely high on launch */
dataZoom: isThumbnail ? [] : DATA_ZOOM_CONFIG.map(zoom => ({ ...zoom, start: 1 })),
xAxis: [
{
name: isMobile || isThumbnail ? '' : t('statistic.date'),
Expand Down

0 comments on commit f629561

Please sign in to comment.