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
@@ -129,6 +129,11 @@ const config: ControlPanelConfig = {
|
||||
['color_scheme'],
|
||||
],
|
||||
},
|
||||
{
|
||||
label: t('Chart Options'),
|
||||
expanded: true,
|
||||
controlSetRows: [['y_axis_format'], ['currency_format']],
|
||||
},
|
||||
],
|
||||
controlOverrides: {
|
||||
entity: {
|
||||
|
||||
@@ -43,6 +43,8 @@ export default function transformProps(chartProps) {
|
||||
colorScheme,
|
||||
sliceId,
|
||||
metric,
|
||||
yAxisFormat,
|
||||
currencyFormat,
|
||||
} = formData;
|
||||
const { r, g, b } = colorPicker;
|
||||
const { currencyFormats = {}, columnFormats = {} } = datasource;
|
||||
@@ -51,7 +53,8 @@ export default function transformProps(chartProps) {
|
||||
metric,
|
||||
currencyFormats,
|
||||
columnFormats,
|
||||
undefined,
|
||||
yAxisFormat,
|
||||
currencyFormat,
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user