Skip to content

Commit

Permalink
fix(sunburst): Use metric label from verbose map (apache#31480)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerbermichi authored Dec 16, 2024
1 parent 9b28a6e commit a1adb7f
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ export default function transformProps(
showTotal,
sliceId,
} = formData;
const { currencyFormats = {}, columnFormats = {} } = datasource;
const {
currencyFormats = {},
columnFormats = {},
verboseMap = {},
} = datasource;
const refs: Refs = {};
const primaryValueFormatter = getValueFormatter(
metric,
Expand Down Expand Up @@ -334,8 +338,10 @@ export default function transformProps(
secondaryValueFormatter,
colorByCategory,
totalValue,
metricLabel,
secondaryMetricLabel,
metricLabel: verboseMap[metricLabel] || metricLabel,
secondaryMetricLabel: secondaryMetricLabel
? verboseMap[secondaryMetricLabel] || secondaryMetricLabel
: undefined,
}),
},
series: [
Expand Down

0 comments on commit a1adb7f

Please sign in to comment.