|
@@ -244,7 +244,10 @@ export default {
|
|
|
xdata() {
|
|
|
if (this.list.length > 0)
|
|
|
return this.list[0].value.map((t) => {
|
|
|
- return t.text;
|
|
|
+ console.log('list0:',this.list[0])
|
|
|
+ console.log('tvalue:',t.value)
|
|
|
+ // return t.text;
|
|
|
+ return t.value
|
|
|
});
|
|
|
return [];
|
|
|
},
|
|
@@ -252,6 +255,7 @@ export default {
|
|
|
let result = [];
|
|
|
|
|
|
this.list.forEach((value, index) => {
|
|
|
+ console.log('list:',this.list)
|
|
|
result.push({
|
|
|
name: value.title,
|
|
|
type: "line",
|
|
@@ -260,7 +264,8 @@ export default {
|
|
|
zlevel: index,
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
- color: index != 0 ? partten.getColor("gray") : this.color[index],
|
|
|
+ // color: index != 0 ? partten.getColor("gray") : this.color[index],
|
|
|
+ color: partten.getColor("gray"),
|
|
|
width: 1,
|
|
|
},
|
|
|
emphasis: {
|
|
@@ -329,6 +334,7 @@ export default {
|
|
|
},
|
|
|
yAxis() {
|
|
|
let result = [];
|
|
|
+ console.log('units:',this.units)
|
|
|
this.units.forEach((value, index) => {
|
|
|
result.push({
|
|
|
type: "value",
|
|
@@ -350,8 +356,9 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
+ console.log('result:',result)
|
|
|
return result;
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
@@ -404,6 +411,7 @@ export default {
|
|
|
},
|
|
|
xAxis: [
|
|
|
{
|
|
|
+ name:"(m/s)",
|
|
|
type: "category",
|
|
|
boundaryGap: false,
|
|
|
axisLabel: {
|
|
@@ -422,6 +430,7 @@ export default {
|
|
|
yAxis: this.yAxis,
|
|
|
series: this.series,
|
|
|
};
|
|
|
+ console.log('this:',this)
|
|
|
chart.clear();
|
|
|
chart && option && chart.setOption(option);
|
|
|
this.resize = function() {
|