Luckysheet [BUG]含有图表的表格,通过getAllSheets获取的数据,再次create的时候报错。

93ze6v8z  于 22天前  发布在  其他
关注(0)|答案(4)|浏览(37)

1.创建一个空白的电子表格。
2.填充数据生成图表。
3.通过getAllSheets方法获取的表格数据(缺少chartOptions属性)。
4.根据3步骤获取到的数据,再次初始化电子表格。
5.初始化报错,Uncaught TypeError:Cannot read property 'chart_id' of undefined。
at Object.Ce [as renderChart] (VM15678 chartmix.umd.min.js:33)。
at a (plugin.js:145)
at Sm (plugin.js:114)
at plugin.js:90
at HTMLScriptElement.n..onload.n..onreadystatechange (util.js:628)

缺少
表格数据:
新建文本文档.txt

axzmvihb

axzmvihb1#

同样遇到问题,我把数据存到localstorage,刷新后读取加载,图表就没了,控制台报 chart_id 错误,目测是相关逻辑和chartmix不契合

2j4z5cfb

2j4z5cfb3#

https://blog.csdn.net/u013355529/article/details/116133127

tql!已搞定图表加载问题!
不过如果是用vue的话,这句需要改一下

chartOptions: {...window.chartmix.default.getChartJson(chart.chart_id)}
62lalag4

62lalag44#

https://blog.csdn.net/u013355529/article/details/116133127

tql!已搞定图表加载问题! 不过如果是用vue的话,这句需要改一下

chartOptions: {...window.chartmix.default.getChartJson(chart.chart_id)}

确实解决了保存和加载,但是编辑图表,比如拖拽图表的数据区域还是会报错,几乎无休无止!老哥,你现在还在使用吗?

相关问题