Commit 83470891 authored by leon's avatar leon

feat:horizontal bar yAxis show

parent 363e7591
......@@ -53,6 +53,7 @@
...that.elementInfo.option,
yAxis: {
...that.elementInfo.option.yAxis,
show: that.elementInfo.data.dataType === 'static', // 静态数据默认显示,其他状态默认不显示,等请求完成后再显示出来
data: categories
},
tooltip: that.dealTooltip(that.elementInfo.option.tooltip),
......@@ -119,6 +120,7 @@
}
const dealSeries = this.dealSeriesData(series)
this.$set(this.ec.option, 'yAxis.show', true)
this.$set(this.ec.option, 'yAxis.data', categories)
this.$set(this.ec.option, 'series', dealSeries)
this.$set(this.ec.option, 'dataZoom', this.elementInfo.dataZoom && this.elementInfo.dataZoom
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment