mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
fix(Gauge echart): displaying column label (#23396)
This commit is contained in:
parent
c5f93686d8
commit
b613167636
@ -100,10 +100,11 @@ export default function transformProps(
|
||||
filterState,
|
||||
theme,
|
||||
emitCrossFilters,
|
||||
datasource,
|
||||
} = chartProps;
|
||||
|
||||
const gaugeSeriesOptions = defaultGaugeSeriesOption(theme);
|
||||
|
||||
const { verboseMap = {} } = datasource;
|
||||
const {
|
||||
groupby,
|
||||
metric,
|
||||
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user