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/06/15 06:42:30 UTC

[GitHub] thbgh opened a new issue #8532: 折线图堆叠 Bug

thbgh opened a new issue #8532: 折线图堆叠  Bug
URL: https://github.com/apache/incubator-echarts/issues/8532
 
 
   ### One-line summary [问题简述]
   
   1.两个项目的数据相同时,折现居然是上下两条???
   2.两个项目,其中一个项目数据较大(我测试时是几K),另一个项目数据接近于0时,两个项目的折线图居然重合???
   
   
   
   ### Version & Environment [版本及环境]
   
   echarts版本 4.x.
   chrome浏览器最新版
   win7
   
   
   
   ### Expected behaviour [期望结果]
   1. 数据相同时,折线图应该重合。
   2.其中一个项目数据接近于0时,折线图应该贴近X轴。
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       title: {
           text: '折线图堆叠'
       },
       tooltip: {
           trigger: 'axis'
       },
       legend: {
           data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
       },
       grid: {
           left: '3%',
           right: '4%',
           bottom: '3%',
           containLabel: true
       },
       toolbox: {
           feature: {
               saveAsImage: {}
           }
       },
       xAxis: {
           type: 'category',
           boundaryGap: false,
           data: ['周一','周二','周三','周四','周五','周六','周日']
       },
       yAxis: {
           type: 'value'
       },
       series: [
           {
               name:'邮件营销',
               type:'line',
               stack: '总量',
               data:[120, 132, 101, 134, 90, 230, 210]
           },
           {
               name:'联盟广告',
               type:'line',
               stack: '总量',
               data:[3200, 3302, 3001, 3340, 3900, 3300, 3200]
           },
           {
               name:'视频广告',
               type:'line',
               stack: '总量',
               data:[0, 0, 0, 0, 2, 4, 4]
           },
           {
               name:'直接访问',
               type:'line',
               stack: '总量',
               data:[3200, 3302, 3001, 3340, 3900, 3300, 3200]
           },
           {
               name:'搜索引擎',
               type:'line',
               stack: '总量',
               data:[820, 932, 901, 934, 1290, 1330, 1320]
           }
       ]
   };
   
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   ![image](https://user-images.githubusercontent.com/9399517/41453879-03852e4e-70aa-11e8-9bd1-d2438325c099.png)
   ![image](https://user-images.githubusercontent.com/9399517/41453906-1c0cf94c-70aa-11e8-899c-a2534d1f310e.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