fix BIG number

This commit is contained in:
Maxime Beauchemin
2025-03-18 17:46:23 -07:00
parent f16600ee86
commit 48df49d89c

View File

@@ -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();