mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
feat(formatters): Add custom d3-time-format locale (#24263)
This commit is contained in:
@@ -20,7 +20,8 @@ import { PureComponent, MouseEvent } from 'react';
|
||||
import {
|
||||
t,
|
||||
getNumberFormatter,
|
||||
smartDateVerboseFormatter,
|
||||
getTimeFormatter,
|
||||
SMART_DATE_VERBOSE_ID,
|
||||
computeMaxFontSize,
|
||||
BRAND_COLOR,
|
||||
styled,
|
||||
@@ -45,7 +46,7 @@ class BigNumberVis extends PureComponent<BigNumberVizProps> {
|
||||
static defaultProps = {
|
||||
className: '',
|
||||
headerFormatter: defaultNumberFormatter,
|
||||
formatTime: smartDateVerboseFormatter,
|
||||
formatTime: getTimeFormatter(SMART_DATE_VERBOSE_ID),
|
||||
headerFontSize: PROPORTION.HEADER,
|
||||
kickerFontSize: PROPORTION.KICKER,
|
||||
mainColor: BRAND_COLOR,
|
||||
|
||||
Reference in New Issue
Block a user