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/05/04 05:48:49 UTC

[GitHub] Ericdmb opened a new issue #8283: X轴空值匹配存在问题

Ericdmb opened a new issue #8283: X轴空值匹配存在问题
URL: https://github.com/apache/incubator-echarts/issues/8283
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   在series的type为line或bar的类型(其他类型未知)时,对x轴进行赋值,当x轴存在null值时,series中的data无法与x轴数据进行正确的映射。
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:Echarts4.0
   + Browser version [浏览器类型和版本]:Chrome66.0.3359.139
   + OS Version [操作系统类型和版本]:Win10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   series中[null,5]能够映射到‘’null‘’上,或者x轴的null不会被转换成‘null’并能与数据正确映射。
   即线有单调性。
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option ={
       legend: {},
       tooltip: {},
       xAxis: {
           type: 'category',
           data:['A','B','C','D',null]
       },
       yAxis: {},
       series: [
           {
               type:'line',
               data:[['A',1],['B',2],['C',3],['D',4],[null,5]],
               encode:{
                   x:0,
                   y:1
               }
           },
       ]
   };
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   http://gallery.echartsjs.com/editor.html?c=xrJD2aPYTz&comment=0
   这上面的案例是我建的,与提交的option差别在seies的数据我把C,D的顺序调换了一下
   
   

----------------------------------------------------------------
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