feat: Implement support for currencies in more charts (#24594)

This commit is contained in:
Kamil Gabryjelski
2023-07-07 19:28:13 +02:00
committed by GitHub
parent c573cfcd12
commit d74d7eca23
18 changed files with 404 additions and 78 deletions

View File

@@ -21,7 +21,6 @@ import d3 from 'd3';
import PropTypes from 'prop-types';
import { extent as d3Extent } from 'd3-array';
import {
getNumberFormatter,
getSequentialSchemeRegistry,
CategoricalColorNamespace,
} from '@superset-ui/core';
@@ -47,10 +46,9 @@ const propTypes = {
setDataMask: PropTypes.func,
onContextMenu: PropTypes.func,
emitCrossFilters: PropTypes.bool,
formatter: PropTypes.object,
};
const formatter = getNumberFormatter();
function WorldMap(element, props) {
const {
countryFieldtype,
@@ -71,6 +69,7 @@ function WorldMap(element, props) {
inContextMenu,
filterState,
emitCrossFilters,
formatter,
} = props;
const div = d3.select(element);
div.classed('superset-legacy-chart-world-map', true);