多维表功能完成
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
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]))})) : []
|
||||
let ops = {
|
||||
return {
|
||||
tooltip: {},
|
||||
xAxis: {
|
||||
type: 'category', nameGap: 20, axisTick: false,
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
type: 'dashed'
|
||||
}
|
||||
},
|
||||
axisLabel: { color: '#C3C4C4' },
|
||||
axisLabel: {color: '#C3C4C4'},
|
||||
axisLine: {
|
||||
lineStyle: {
|
||||
color: '#C3C4C4'
|
||||
@@ -101,7 +101,6 @@ export default {
|
||||
legend, series, ...options,
|
||||
color: colors
|
||||
}
|
||||
return ops
|
||||
},
|
||||
grid() {
|
||||
let {width, height} = this.chartOptions.grid || {}
|
||||
|
||||
Reference in New Issue
Block a user