NEZ-3121 fix:dashboard chart timeseries Y 轴刻度错误
This commit is contained in:
@@ -84,6 +84,7 @@ export default {
|
||||
this.isNoData = true
|
||||
originalDatas.forEach((originalData, expressionIndex) => {
|
||||
originalData.forEach((data, dataIndex) => {
|
||||
console.log(data, 'data')
|
||||
if (colorIndex >= 20 && !this.showAllData) {
|
||||
colorIndex++
|
||||
return
|
||||
@@ -97,6 +98,9 @@ export default {
|
||||
chartInfo.param.rightYAxis && chartInfo.param.rightYAxis.elementNames.forEach(item => {
|
||||
if (data.elements.name == item) {
|
||||
s.yAxisIndex = 1
|
||||
data.yAxisIndex = 1
|
||||
} else {
|
||||
data.yAxisIndex = 0
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user