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/12/18 12:50:18 UTC

[GitHub] wait-hua commented on issue #9588: Axis-triggered tooltip failed to display some series if x axis values are not 100% equal!

wait-hua commented on issue #9588: Axis-triggered tooltip failed to display some series if x axis values are not 100% equal!
URL: https://github.com/apache/incubator-echarts/issues/9588#issuecomment-448209820
 
 
   ```bash
   option = {
       title: {
           text: '折线图堆叠'
       },
       tooltip: {
           trigger: 'axis'
       },
       legend: {
           data:['邮件营销','联盟广告']
       },
       grid: {
           left: '3%',
           right: '4%',
           bottom: '3%',
           containLabel: true
       },
       toolbox: {
           feature: {
               saveAsImage: {}
           }
       },
       xAxis: {
           type: 'value',
           boundaryGap: false,
           
       },
       yAxis: {
           type: 'value'
       },
       series: [
           {
               name:'邮件营销',
               type:'line',
               stack: '总量',
               data:[[2,120],[3,200]]
           },
           {
               name:'联盟广告',
               type:'line',
               stack: '总量',
               data:[[2,400],[6,300]]
           },
           
       ]
   };
   
   ```
   ![image](https://user-images.githubusercontent.com/9930642/50155132-32e3fc80-0306-11e9-9fe0-b07ee60b1a76.png)
   
   I also meet a problem when the two lines xAxis is different. The second line is wrong, why?  cloud you help me ?

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