We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echart3.1.2 在react使用中,type:'line'时报错createListFromArray.js:90 Uncaught TypeError: Cannot read property 'get' of undefined:
createListFromArray.js:90 Uncaught TypeError: Cannot read property 'get' of undefined
import echarts from 'echarts/lib/echarts'; import 'echarts/lib/chart/line';
Line能正常展现
需要的组件没有加载完?除了line还有别的?
option = { xAxis: { type: 'value', splitLine: { show: false } }, yAxis: { type: 'value', splitLine: { show: false } }, series: [{ type: 'line', showSymbol: false, hoverAnimation: false, data: [[1,3],[2,4], [5,6],[9,100]] }] }
The text was updated successfully, but these errors were encountered:
还需要引入 grid 组件
import 'echarts/lib/component/grid';
Sorry, something went wrong.
@pissang 引入echarts/lib/component/grid之后,除了Line;其它的Map、Pie、Gauge都带了网格……设置grid: {show: false}也没用。
echarts/lib/component/grid
grid: {show: false}
这个怎么破?
另外,map在react中使用,hover的时候特别卡。感觉是地图精度太高,计算过于复杂 ?(已解决)
componentDidMount() { $.getJSON('/assets/json/heilongjiang.json', function (geoJson) { echarts.registerMap('HLJ', geoJson); // setOption )} }
No branches or pull requests
问题简述 (One-line summary)
echart3.1.2 在react使用中,type:'line'时报错
createListFromArray.js:90 Uncaught TypeError: Cannot read property 'get' of undefined
:版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
期望结果 (Expected behaviour)
Line能正常展现
可能哪里有问题 (What went wrong)
需要的组件没有加载完?除了line还有别的?
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: