Skip to content

Commit

Permalink
fix(Gauge echart): displaying column label (#23396)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashBoora authored Apr 8, 2023
1 parent c5f9368 commit b613167
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ export default function transformProps(
filterState,
theme,
emitCrossFilters,
datasource,
} = chartProps;

const gaugeSeriesOptions = defaultGaugeSeriesOption(theme);

const { verboseMap = {} } = datasource;
const {
groupby,
metric,
Expand Down Expand Up @@ -146,7 +147,7 @@ export default function transformProps(
const transformedData: GaugeDataItemOption[] = data.map(
(data_point, index) => {
const name = groupbyLabels
.map(column => `${column}: ${data_point[column]}`)
.map(column => `${verboseMap[column] || column}: ${data_point[column]}`)
.join(', ');
columnsLabelMap.set(
name,
Expand Down

0 comments on commit b613167

Please sign in to comment.