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

@@ -62,6 +62,7 @@ export default {
[headerFontSize],
[subheaderFontSize],
['y_axis_format'],
['currency_format'],
[
{
name: 'time_format',

View File

@@ -53,6 +53,7 @@ export default function transformProps(
timeFormat,
yAxisFormat,
conditionalFormatting,
currencyFormat,
} = formData;
const refs: Refs = {};
const { data = [], coltypes = [] } = queriesData[0];
@@ -80,6 +81,7 @@ export default function transformProps(
currencyFormats,
columnFormats,
yAxisFormat,
currencyFormat,
);
const headerFormatter =

View File

@@ -136,6 +136,7 @@ const config: ControlPanelConfig = {
[headerFontSize],
[subheaderFontSize],
['y_axis_format'],
['currency_format'],
[
{
name: 'time_format',

View File

@@ -91,6 +91,7 @@ export default function transformProps(
subheaderFontSize,
forceTimestampFormatting,
yAxisFormat,
currencyFormat,
timeRangeFixed,
} = formData;
const granularity = extractTimegrain(rawFormData);
@@ -180,6 +181,7 @@ export default function transformProps(
currencyFormats,
columnFormats,
yAxisFormat,
currencyFormat,
);
const headerFormatter =