@@ -247,13 +247,18 @@ export default {
},
xdata() {
if (this.list.length > 0)
- console.log('xlist:',this.list[0])
- return this.list[0].value.map((t) => {
+ console.log('xthis:',this)
+ console.log('xlist:',this.list)
+
+ return this.list[0].value.map((t,tIndex) => {
console.log('list0:',this.list[0])
+ console.log('tindex:',tIndex)
console.log('t:',t)
console.log('tvalue:',t.value)
// return t.text;
- return t.value
+ let xunit = [tIndex]
+ return xunit
+ // return t.value
});
return [];
@@ -430,8 +435,7 @@ export default {
axisLine: {
show: false,
- // data: this.xdata,
- data:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]
+ data: this.xdata,
],
yAxis: this.yAxis,
@@ -197,7 +197,11 @@ export default {
}];
keyArray.forEach((keyEle, keyIndex) => {
+ console.log('keyele:',keyEle,'keyindex:',keyIndex)
+ console.log('resdata:',res.data)
res.data.forEach(ele => {
+ console.log('ele:',ele)
+ console.log(' chartData[keyIndex].value:', chartData[keyIndex].value)
chartData[keyIndex].value.push({
text: "",
value: ele[keyEle.key]