引入echarts 报错xAxis “0“ not found
问题描述:
echarts.js:6064 Method `dispose` should be implemented in custom. (anonymous) @ echarts.js:6064 echarts.js:25450 Uncaught Error: xAxis "0" not foundat cartesian2d (http://localhost:8888/EChart/js/echarts.js:25450:28)at createListFromArray (http://localhost:8888/EChart/js/echarts.js:25357:36)at ExtendedClass.getInitialData (http://localhost:8888/EChart/js/echarts.js:26395:21)at ExtendedClass.init (http://localhost:8888/EChart/js/echarts.js:17365:30)at ExtendedClass.<anonymous> (http://localhost:8888/EChart/js/echarts.js:2459:45)at Array.forEach (native)at each (http://localhost:8888/EChart/js/echarts.js:3226:18)at ExtendedClass.visitComponent (http://localhost:8888/EChart/js/echarts.js:2420:18)at Function.entity.topologicalTravel (http://localhost:8888/EChart/js/echarts.js:16078:31)at ExtendedClass.mergeOption (http://localhost:8888/EChart/js/echarts.js:2389:29)
存在问题:
一:可能是:举例
xAxis:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
xAxis直接接收X轴的data值,应该是在大括号里包裹data值
解决方案:
xAxis:{
type: 'category',
data:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]
}
二、
加一句: var echarts = require("echarts")
引入echarts 报错xAxis “0“ not found相关推荐
- Ant Design Pro引入Echarts 报错Unexpected token
想要在ant design pro中引入echart,发现在网上找了很多示例直接运行不通过,可能需要更改下部分格式,比如直接引用下面链接中的代码就会报错:Unexpected token, https ...
- Ant design pro引入Echarts报错:TypeError: Cannot read property 'x_data' of undefined
目录 (1)报错:TypeError: Cannot read property 'x_data' of undefined (2)报错:× Error: Component series.line ...
- vue3.0引入ant-design-vue报错 export ‘default‘ (imported as ‘Vue‘) was not found in ‘vue‘
vue3.0引入ant-design-vue报错 export 'default' (imported as 'Vue') was not found in 'vue' 报错如下 解决办法 根目录命令 ...
- echarts报错Uncaught SyntaxError: Unexpected token ‘<‘
问题重现 最近需要研究echarts做图表,打算在html中先引用echarts试试. 于是百度到echarts官网的教程:5 分钟上手 ECharts <!DOCTYPE html> & ...
- vue项目中,关于echarts报错:To install them, you can run: npm install --save echarts/lib/chart/bar…………
一.问题:项目中安装了echarts后,运行项目后会出现以下报错: 安装完成后,在main.js里面引入: 报错问题: 二.解决: 运行 npm i v-charts echarts@4.9.0 -S ...
- echarts报错分析汇总
echarts报错分析汇总 echart 节点重复报错---echarts2.js:60988 Graph nodes have duplicate name or id 桑基图-拖拽时出现样式错乱, ...
- Vue scss 引入变量报错
官网css引入配置 参考文章 我在项目里自定义了vue.config.js的rules关于scss的loader所以我是直接子啊loader配置options就可以 { test: /\.scss$/ ...
- SAP 对HU做货物移动报错-Only 0 serial numbers entered instead of 30 -
SAP 对HU做货物移动报错-Only 0 serial numbers entered instead of 30 - 元旦刚过,就收到客户的业务人员报错说,当其对HU做转库(同一个公司代码下工厂到 ...
- vite:vue中引入图片报错require is not defined
问题 在 vite 项目中这样引入图片报错 images: require('../assets/images/right.png') 改为 images: new URL('../assets/im ...
最新文章
- Arrays.asList详解
- 把自己编写的python模块添加到PYTHONPATH上
- getId()方法的作用
- fprintf与fwrite的区别
- 1/2 pymysql:Python连接MySQL数据库
- c语言程序设计的顺序结构的常用控制语句,C语言程序设计教程-第03课-顺序结构的程序设计.ppt...
- Spring+Hibernate+Atomikos集成构建JTA的分布式事务--解决多数据源跨库事务
- 抽奖啦!量子位原创T恤任性送,夏天就要酷酷的
- how to get keyboard key with non blocking in terminal
- java我的世界损坏的种子,我的世界:5分钟让你通关游戏的种子,大神用这种子破了世界纪录...
- perl练习——FASTA格式文件中序列GC含量计算perl数组排序如何获得下标或者键
- 总结:6个不得不看的APP获客模式
- Reached heap limit Allocation failed - JavaScript heap out of memory
- 网站劫持原理及分析网站被劫持了有几种解决方法
- 常用类库-java.lang.String
- python 魔法方法诠释
- win10计算机拨号连接,Win10设置电脑开机自动连接宽带的方法
- 项目案例:网上书店数据库设计
- 互联网与达尔文进化论的结合
- 计算机网络位置网盘怎么登陆,百度网盘使用小技巧,超全超详细!新手必备
热门文章
- Ubuntu虚拟机使用桥接网络设置静态IP
- 机器学习——需求预测——准确性(误差)统计——MAE、MSE、MAPE、WMAPE
- 小程序后台开发sdk
- ARIMA模型实例讲解:时间序列预测需要多少历史数据?
- HDU 5755 Gambler Bo(高斯消元裸题)——2016 Multi-University Training Contest 3
- uni-app实现支付及项目打包上传
- python的repl模式_为什么解释器的交互模式又叫 REPL
- 基于MATLAB/Simulink的Buck变换器仿真模型,包含开环控制和闭环控制两种控制
- ctf MISC 放松一下吧
- ThinkPHP开发手册