|
@@ -51,7 +51,7 @@ export default {
|
|
|
watch: {
|
|
|
xAxisData: {
|
|
|
handler (nVal, oVal) {
|
|
|
- // console.log(nVal, 'nnnnnnnn')
|
|
|
+ console.log(nVal, 'nnnnnnnn')
|
|
|
if (nVal) {
|
|
|
// 根据x轴时间长度控制滚动条位置及显示状态 x轴长度大于25时,显示滚动条并且滚动条结束位置在80%
|
|
|
if (nVal.length > 25) {
|
|
@@ -59,6 +59,7 @@ export default {
|
|
|
this.xZoomEnd = 80
|
|
|
} else {
|
|
|
this.isShowZoom = false
|
|
|
+ this.xZoomEnd = 100
|
|
|
}
|
|
|
if (nVal.length > 30) {
|
|
|
this.xZoomEnd = 70
|
|
@@ -106,6 +107,7 @@ export default {
|
|
|
const legend = this.seriesData.map(_ => _.name)
|
|
|
this.$nextTick(() => {
|
|
|
const xAxisData = this.value ? Object.keys(this.value) : this.xAxisData
|
|
|
+ console.log(xAxisData, 'xAxisData')
|
|
|
const seriesData = this.value ? Object.values(this.value) : this.seriesData
|
|
|
const option = {
|
|
|
color: [this.color],
|