fix: 修复npm location的第一个折线图stack不对的问题
This commit is contained in:
@@ -182,6 +182,7 @@ export default {
|
||||
data = data.reverse()
|
||||
|
||||
this.chartOption.series = data.map((t, i) => {
|
||||
console.info(t)
|
||||
return {
|
||||
type: 'line',
|
||||
symbol: 'circle',
|
||||
@@ -196,7 +197,7 @@ export default {
|
||||
}
|
||||
},
|
||||
name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name,
|
||||
stack: this.chartData.params.isStack ? 'network.total' : '',
|
||||
stack: this.chartData.params.isStack ? (t.legend === this.$t('network.total') ? '' : 'network.total') : '',
|
||||
lineStyle: {
|
||||
width: 1
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user