mirror of
https://github.com/apache/superset.git
synced 2026-05-11 02:45:46 +00:00
fix BIG number
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
BRAND_COLOR,
|
||||
styled,
|
||||
BinaryQueryObjectFilterClause,
|
||||
themeObject,
|
||||
} from '@superset-ui/core';
|
||||
import Echart from '../components/Echart';
|
||||
import { BigNumberVizProps } from './types';
|
||||
@@ -138,6 +139,7 @@ class BigNumberVis extends PureComponent<BigNumberVizProps> {
|
||||
const hasThresholdColorFormatter =
|
||||
Array.isArray(colorThresholdFormatters) &&
|
||||
colorThresholdFormatters.length > 0;
|
||||
const { theme } = themeObject;
|
||||
|
||||
let numberColor;
|
||||
if (hasThresholdColorFormatter) {
|
||||
@@ -150,7 +152,7 @@ class BigNumberVis extends PureComponent<BigNumberVizProps> {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
numberColor = 'black';
|
||||
numberColor = theme.colorText;
|
||||
}
|
||||
|
||||
const container = this.createTemporaryContainer();
|
||||
|
||||
Reference in New Issue
Block a user