NEZ-2057 fix:hexagon valueMapping 使用变量未正确转化
This commit is contained in:
@@ -127,6 +127,7 @@ export default {
|
|||||||
...item,
|
...item,
|
||||||
x: colIndex,
|
x: colIndex,
|
||||||
y: rowIndex,
|
y: rowIndex,
|
||||||
|
metrics: item.label,
|
||||||
label: item.legend
|
label: item.legend
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -250,10 +251,10 @@ export default {
|
|||||||
const textColor = point.mapping ? point.mapping.color.text : this.invertColor(color)
|
const textColor = point.mapping ? point.mapping.color.text : this.invertColor(color)
|
||||||
if (this.chartInfo.param.text === 'all') {
|
if (this.chartInfo.param.text === 'all') {
|
||||||
str += point.alias
|
str += point.alias
|
||||||
valueStr = point.mapping && point.mapping.display ? self.handleDisplay(point.mapping.display, { ...point.labels, value: point.showValue }) : point.showValue
|
valueStr = point.mapping && point.mapping.display ? self.handleDisplay(point.mapping.display, { ...point.metrics, value: point.showValue }) : point.showValue
|
||||||
}
|
}
|
||||||
if (this.chartInfo.param.text === 'value' || !this.chartInfo.param.text) {
|
if (this.chartInfo.param.text === 'value' || !this.chartInfo.param.text) {
|
||||||
valueStr = point.mapping && point.mapping.display ? self.handleDisplay(point.mapping.display, { ...point.labels, value: point.showValue }) : point.showValue
|
valueStr = point.mapping && point.mapping.display ? self.handleDisplay(point.mapping.display, { ...point.metrics, value: point.showValue }) : point.showValue
|
||||||
}
|
}
|
||||||
if (this.chartInfo.param.text === 'legend') {
|
if (this.chartInfo.param.text === 'legend') {
|
||||||
str += point.alias
|
str += point.alias
|
||||||
|
|||||||
Reference in New Issue
Block a user