zhangtaoBqteam commented on issue #9556: calendar在改变range的时候 出现了报错 URL: https://github.com/apache/incubator-echarts/issues/9556#issuecomment-445517320 echart版本: 4.1.0 问题描述:在修改日历图的range时,由传入的变量修改option,再调用setOption的方法,在页面上图是可以显示的且数据都准确,但是在检查工具栏中报错了,自己检查了一下代码发现,把修改calendar range的那段代码注释掉,工具栏中就不会报错,真的不知道原因,烦请熟悉的大神帮忙看看 报错信息: <img width="481" alt="2018-12-09 3 33 07" src="https://user-images.githubusercontent.com/43007011/49694586-00305a80-fbc8-11e8-9b2f-e4a32a6445fb.png"> <img width="492" alt="2018-12-09 3 33 15" src="https://user-images.githubusercontent.com/43007011/49694587-00c8f100-fbc8-11e8-9277-a587e409746c.png"> 代码: ``` this.option.calendar = this.calendar; this.option.series[0].data = this.series_data; if (this.visualMap_range.length > 0) { this.option.visualMap.min = this.visualMap_range[0]; this.option.visualMap.max = this.visualMap_range[1]; } this.$refs.dashboard_calendar_chart.setOption(this.option); ``` ``` this.calendar = [ { range: ["2018-01-01", "2018-12-08"], cellSize: "auto" } ] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
