rapid-spreadjs 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7117,6 +7117,10 @@ const EChartsUtils = {
|
|
|
7117
7117
|
* @param isHideChart 是否隐藏图表
|
|
7118
7118
|
*/
|
|
7119
7119
|
initChart: (spread, sheet, config, isHideChart = false) => {
|
|
7120
|
+
// 此时可能ECharts所在的div还没有渲染(如浮动元素还没有在可视区域的时候是不会创建的)
|
|
7121
|
+
if (document.getElementById(config.chartId + '_ec') == null) {
|
|
7122
|
+
return null;
|
|
7123
|
+
}
|
|
7120
7124
|
// 获取多条x轴的数组(类似[[1,2,3,4],[1,2,3,4]])
|
|
7121
7125
|
let xDataArr = [], yDataArr = [];
|
|
7122
7126
|
// 获取多条x轴的数组(单元格原始数据,类似[['1.0','2.0','3.0'],['1.0','2.0','3.0']],此数据可能在有些情况下需要使用原始数据,如:原始数据为字符串的1.0,可能需要在x轴显示为1.0这个字符文本)
|