Commit cbe5f611 authored by leon's avatar leon

feat: daily

parent bff7eba4
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
} = this.elementData } = this.elementData
const seniorConfig = this.elementInfo.option.seniorConfig const seniorConfig = this.elementInfo.option.seniorConfig
this.ec.option = this.$u.common.converFunction(seniorConfig, dataList, geoCoordMapList) this.ec.option = this.$u.common.converFunction(seniorConfig, dataList, geoCoordMapList)
console.log(this.ec.option)
chart.setOption(this.ec.option) chart.setOption(this.ec.option)
const that = this const that = this
chart.on('click', event => { chart.on('click', event => {
...@@ -115,8 +114,8 @@ ...@@ -115,8 +114,8 @@
if (value.categories) { if (value.categories) {
this.ec.option.yAxis.data = value.categories this.ec.option.yAxis.data = value.categories
} }
if (value.title && this.ec.option.graphic) { if (value.title && this.ec.option.title) {
this.ec.option.graphic.elements[0].style.text = value.title this.ec.option.title.text = value.title
} }
this.currentIndex = index this.currentIndex = index
if (index === dataList.length - 1) { if (index === dataList.length - 1) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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