You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/07/19 04:09:32 UTC

[GitHub] jsCONFIG opened a new issue #8723: 偶发的getAxesOnZeroOf is not a function报错

jsCONFIG opened a new issue #8723: 偶发的getAxesOnZeroOf is not a function报错
URL: https://github.com/apache/incubator-echarts/issues/8723
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   我们的异常监控系统检测到了用户在使用线图的过程中,存在很多『getAxesOnZeroOf is not a function』的前端报错,目前没办法进行复现,但基本每天都能收到这样的异常,查了下报错源头,是下面这个位置的报错:
   https://github.com/apache/incubator-echarts/blob/870a48a6d3575f1465e883683c2a25e44a596738/src/coord/cartesian/cartesianAxisHelper.js#L37
   
   我们的使用环境比较复杂,图表所在的外层DOM容器尺寸是用户可自行调整的。
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: echarts@4.1.0 按需打包,打包清单如下:
   ```js
   import ReactEchartsCore from 'echarts-for-react/lib/core';
   
   import echarts from 'echarts/lib/echarts';
   import 'echarts/lib/chart/line';
   import 'echarts/lib/chart/bar';
   import 'echarts/lib/chart/pie';
   import 'echarts/lib/chart/funnel';
   
   import 'echarts/lib/component/grid';
   import 'echarts/lib/component/legend';
   import 'echarts/lib/component/legendScroll';
   import 'echarts/lib/component/tooltip';
   import 'echarts/lib/component/title';
   import 'echarts/lib/component/dataZoom';
   import 'echarts/lib/component/visualMap';
   import 'echarts/lib/component/markPoint';
   import 'echarts/lib/component/markLine';
   import 'echarts/lib/component/markArea';
   import 'echarts/lib/component/timeline';
   import 'echarts/lib/component/toolbox';
   ```
   + Browser version [浏览器类型和版本]:Chrome/67.0.3396.99
   + OS Version [操作系统类型和版本]:Mac OS X 10_13_5
   
   
   
   
   
   ### Expected behaviour [期望结果]
   不再报异常
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       "tooltip": {
           "trigger": "axis",
           "axisPointer": {
               "type": "cross",
               "label": {
                   "backgroundColor": "#000"
               }
           }
       },
       "legend": {
           "type": "scroll",
           "bottom": 0,
           "data": [
               "指标1",
               "同比值",
               "环比值"
           ],
           "textStyle": {
               "color": "#666"
           }
       },
       "xAxis": {
           "type": "category",
           "data": [
               "20180712",
               "20180713",
               "20180714",
               "20180715",
               "20180716",
               "20180717",
               "20180718"
           ]
       },
       "grid": {
           "left": "3%",
           "right": "3%",
           "top": "6%",
           "bottom": "15%",
           "containLabel": true
       },
       "yAxis": [
           {
               "type": "value",
               "splitLine": {
                   "lineStyle": {
                       "color": "#ccc",
                       "type": "dashed"
                   }
               },
               "axisLabel": {},
               "position": "left"
           }
       ],
       "series": [
           {
               "yAxisIndex": 0,
               "name": "指标1",
               "type": "line",
               "data": [
                   "123456.47",
                   "234567.63",
                   "345678.62",
                   "456789.24",
                   "446789.24",
                   "324227.22",
                   "288.88"
               ],
               "barGap": 0,
               "stack": null
           },
           {
               "yAxisIndex": 0,
               "name": "同比值",
               "type": "line",
               "data": [
                   "223456.47",
                   "334567.63",
                   "445678.62",
                   "556789.24",
                   "546789.24",
                   "224227.22",
                   "188.88"
               ],
               "barGap": 0,
               "stack": null
           },
           {
               "yAxisIndex": 0,
               "name": "环比值",
               "type": "line",
               "data": [
                   "323456.47",
                   "224567.63",
                   "145678.62",
                   "356789.24",
                   "346789.24",
                   "224227.22",
                   "2288.88"
               ],
               "barGap": 0,
               "stack": null
           }
       ]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   ![image](https://user-images.githubusercontent.com/5093428/42921074-778c3a3c-8b4c-11e8-84eb-304ae1829397.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org