Statistic

2 min read

Statistic

Indicator card Displays statistical data.

Usage

import { Statistic } from '@antv/gui';

StatisticOptions

PropertyDescriptionTypeDefault
xStarting point xnumber-
yStarting point ynumber-
titletitleTextCfg{}
valuevalueTextCfg{}
spacingDistance between up and downnumber5

TextCfg

PropertyDescriptionTypeDefault
xStarting point xnumber-
yStarting point ynumber-
texttextstring | number''
styletext style{default: RectProps, active: RectProps}{}
markericonMarkernull
spacingGraphic spacingnumber4

Statistic(Countdown)

Countdown or current time.

import

import { Countdown } from '@antv/gui';

Timer configuration item (the configuration is inherited from the indicator card)

PropertyDescriptionTypeDefault
valueThe countdown optionTextCfg{}
onFinishThe reverse meter ends the callbackcallBack() => {}

TextCfg

PropertyDescriptionTypeDefault
formatFormatting time string null
timestampCountdown timestamp number 30s