Closed FFHHVV closed 2 years ago
我也想用多图布局,用预览模式看了gallery的多图布局,发现其实还是多个div,每个options[i]与相应的div绑定的。
所以……自己写个排版+自动绑定(echarts.init)的函数就好了
我觉得官方表达有问题,不是整个options = [],而是在各对象中[],如options.title=[] 见 https://gallery.echartsjs.com/editor.html?c=scatter-anscombe-quartet
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
One-line summary [问题简述]
官网上创建的例子支持多图布局,自己创建的例子怎么才能支持多图布局? 布局需要自己处理吗,还是有现成可用的API?没有发现API中有相关的方法 myChart.setOption( )方法,并不支持传入options=[ ]数组, myChart.setOption(options),这样传入会报“对象不支持split属性或方法”的错误 myChart.setOption(options[0]),这样传入没有问题 ![Uploading TIM截图20171021105126.png…]()
Version & Environment [版本及环境]
Expected behaviour [期望结果]
传入options = [ ]配置项数组,实现多图布局
ECharts option [ECharts配置项]
Other comments [其他信息]