修复黔西南异常

This commit is contained in:
aixianling
2024-04-02 18:15:49 +08:00
parent de918d48dc
commit f50bd497be
2 changed files with 2 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ export default {
colors = this.theme === '1' ? this.colors : (options.color || this.colors),
legend = {textStyle: {color: '#fff', padding: [0, 0, 0, 8], fontSize: 14}, show: false},
series = data?.[0] ? Array(Object.keys(data?.[0]).length - 1).fill(1)
.map((e, i) => ({type, ...(typeof style == 'object' ? style : style(colors[i]))})) : []
.map((e, i) => ({type, ...daemon, ...(typeof style == 'object' ? style : style(colors[i]))})) : []
return {
tooltip: {},
xAxis: {
@@ -99,7 +99,7 @@ export default {
top: '26px',
containLabel: true
},
legend, series: {...daemon, ...series}, ...options,
legend, series, ...options,
color: colors
}
},