feat: Add currencies controls in control panels (#24718)

This commit is contained in:
Kamil Gabryjelski
2023-08-02 19:22:45 +02:00
committed by Michael S. Molina
parent dfd699f440
commit 10e781d0ff
63 changed files with 697 additions and 306 deletions

View File

@@ -258,6 +258,7 @@ const config: ControlPanelConfig = {
},
],
['y_axis_format'],
['currency_format'],
[
{
name: 'time_format',

View File

@@ -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