Statistic
Indicator card Displays statistical data.
Usage
import { Statistic } from '@antv/gui';
StatisticOptions
| Property | Description | Type | Default |
|---|
| x | Starting point x | number | - |
| y | Starting point y | number | - |
| title | title | TextCfg | {} |
| value | value | TextCfg | {} |
| spacing | Distance between up and down | number | 5 |
TextCfg
| Property | Description | Type | Default |
|---|
| x | Starting point x | number | - |
| y | Starting point y | number | - |
| text | text | string | number | '' |
| style | text style | {default: RectProps, active: RectProps} | {} |
| marker | icon | Marker | null |
| spacing | Graphic spacing | number | 4 |
Statistic(Countdown)
Countdown or current time.
import
import { Countdown } from '@antv/gui';
Timer configuration item (the configuration is inherited from the indicator card)
| Property | Description | Type | Default |
|---|
| value | The countdown option | TextCfg | {} |
| onFinish | The reverse meter ends the callback | callBack | () => {} |
TextCfg
| Property | Description | Type | Default |
|---|
| format | Formatting time | string | null |
| timestamp | Countdown timestamp | number | 30s |