Skip to content

Commit

Permalink
Add currency and number formatting to WorldMap
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Jul 24, 2023
1 parent 22fc493 commit 7d36aee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ const config: ControlPanelConfig = {
['color_scheme'],
],
},
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['y_axis_format'], ['currency_format']],
},
],
controlOverrides: {
entity: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export default function transformProps(chartProps) {
colorScheme,
sliceId,
metric,
yAxisFormat,
currencyFormat,
} = formData;
const { r, g, b } = colorPicker;
const { currencyFormats = {}, columnFormats = {} } = datasource;
Expand All @@ -51,8 +53,8 @@ export default function transformProps(chartProps) {
metric,
currencyFormats,
columnFormats,
undefined,
undefined,
yAxisFormat,
currencyFormat,
);

return {
Expand Down

0 comments on commit 7d36aee

Please sign in to comment.