Commit a6d848af by 李君

1

1 parent 1859c69b
...@@ -249,7 +249,7 @@ Component({ ...@@ -249,7 +249,7 @@ Component({
getLineConfig(res) { getLineConfig(res) {
let xasix = res.xaxis.data || [] let xasix = res.xaxis.data || []
let seriesList = res.series || []; let seriesList = res.series || [];
let legendData = ['路过客流','进店客流','顾客人数','进店率'] let legendData = ['进店客流','路过客流','顾客人数','进店率']
seriesList.forEach((item,index)=>{ seriesList.forEach((item,index)=>{
if(index==3){ if(index==3){
item.yAxisIndex= 1 item.yAxisIndex= 1
...@@ -366,7 +366,7 @@ Component({ ...@@ -366,7 +366,7 @@ Component({
} }
}], }],
legend:{ legend:{
data:['路过客流','进店客流','顾客人数','进店率'], data:['进店客流','路过客流','顾客人数','进店率'],
// bottom: 0 // bottom: 0
}, },
color: ['#FD8C5E', '#6FD3FF', '#BC7FF8', '#4F75FF', '#FF9AC1'], color: ['#FD8C5E', '#6FD3FF', '#BC7FF8', '#4F75FF', '#FF9AC1'],
......
...@@ -331,7 +331,7 @@ Component({ ...@@ -331,7 +331,7 @@ Component({
let xasix = res.xaxis.data let xasix = res.xaxis.data
// let legendList = res.series.map(item => item.name) // let legendList = res.series.map(item => item.name)
let seriesList = res.series || [] let seriesList = res.series || []
let legendData = ['路过客流','进店客流','顾客人数','进店率'] let legendData = ['进店客流','路过客流','顾客人数','进店率']
seriesList.forEach((item,index)=>{ seriesList.forEach((item,index)=>{
if(index==3){ if(index==3){
item.yAxisIndex= 1 item.yAxisIndex= 1
...@@ -436,7 +436,7 @@ Component({ ...@@ -436,7 +436,7 @@ Component({
} }
}], }],
legend:{ legend:{
data:['路过客流','进店客流','顾客人数','进店率'], data:['进店客流','路过客流','顾客人数','进店率'],
// bottom: 0 // bottom: 0
}, },
color: ['#FD8C5E', '#6FD3FF', '#BC7FF8', '#4F75FF', '#FF9AC1'], color: ['#FD8C5E', '#6FD3FF', '#BC7FF8', '#4F75FF', '#FF9AC1'],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!