mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat: Add currencies controls in control panels (#24718)
This commit is contained in:
committed by
Michael S. Molina
parent
dfd699f440
commit
10e781d0ff
@@ -258,6 +258,7 @@ const config: ControlPanelConfig = {
|
||||
},
|
||||
],
|
||||
['y_axis_format'],
|
||||
['currency_format'],
|
||||
[
|
||||
{
|
||||
name: 'time_format',
|
||||
|
||||
@@ -43,6 +43,7 @@ export default function transformProps(chartProps) {
|
||||
yAxisBounds,
|
||||
yAxisFormat,
|
||||
timeFormat,
|
||||
currencyFormat,
|
||||
} = formData;
|
||||
const { data = [], coltypes = [] } = queriesData[0];
|
||||
const { columnFormats = {}, currencyFormats = {} } = datasource;
|
||||
@@ -51,6 +52,7 @@ export default function transformProps(chartProps) {
|
||||
currencyFormats,
|
||||
columnFormats,
|
||||
yAxisFormat,
|
||||
currencyFormat,
|
||||
);
|
||||
const xAxisFormatter =
|
||||
coltypes[0] === GenericDataType.TEMPORAL
|
||||
|
||||
Reference in New Issue
Block a user