Statistic
Display statistic number.
When To Use#
- When want to highlight some data.
- When want to display statistic data with description.
import { NzStatisticModule } from 'ng-zorro-antd/statistic';
Examples
Active Users
Account Balance (CNY)
Active Users
Loading...
Active
Idle
Loading...
Feedback
Unmerged
Loading...
Countdown
Million Seconds
Day Level
Loading...
API#
nz-statistic#
Property | Description | Type | Default |
---|---|---|---|
[nzPrefix] | Prefix of Value | string | TemplateRef<void> | - |
[nzSuffix] | Suffix of Value | string | TemplateRef<void> | - |
[nzTitle] | Title | string | TemplateRef<void> | - |
[nzValue] | Value | string | number | - |
[nzValueStyle] | Value CSS style | Object | - |
[nzValueTemplate] | Custom template to render a number | TemplateRef<{ $implicit: string | number }> | - |
[nzLoading] | Loading status of Statistic | boolean | false |
nz-countdown#
Property | Description | Type | Default |
---|---|---|---|
[nzFormat] | Format string | string | "HH:mm:ss" |
[nzPrefix] | Prefix of Value | string | TemplateRef<void> | - |
[nzSuffix] | Suffix of Value | string | TemplateRef<void> | - |
[nzTitle] | Title | string | TemplateRef<void> | - |
[nzValue] | Target time in timestamp form | string | number | - |
[nzValueTemplate] | Custom template to render a time | TemplateRef<{ $implicit: number }> | - |
(nzCountdownFinish) | Emit when countdown finishes | void | - |
nzFormat#
Token | Description |
---|---|
Y | Year |
M | Month |
D | Date |
H | Hour |
m | Minute |
s | Second |
S | Millisecond |