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