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/11 10:38:06 UTC

[GitHub] hsay opened a new issue #8326: 父元素旋转90度,移动端显示不正常

hsay opened a new issue #8326: 父元素旋转90度,移动端显示不正常
URL: https://github.com/apache/incubator-echarts/issues/8326
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   <div class="rotate">
   <div class="echarts-container" ref="echartsContainer">
   </div>
   </div>
   
   .rotate{
    transform: rotate(90deg)
   }
   
   即将echarts组件的父元素旋转90度,此时tooltip不能正常显示,并且legends不能点击(移动端有该问题)
   pc端变现正常。
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:echarts@4.0.4
   + Browser version [浏览器类型和版本]:chrome浏览器 移动端模式
   + OS Version [操作系统类型和版本]: win8
   
   
   
   
   
   ### Expected behaviour [期望结果]
   能像不旋转时一样正常显示tooltip以及正常操作len=gends
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option ={
           baseOption: {
             title: {
               text: ''
             },
             color: colors,
             tooltip: {
               show:true,
               trigger: 'axis',
               confine: false, 
               //若要使tooltip显示完全,外层不要设置overflow:hidden
               position:['0', '0']
             },
             legend: {
               // bottom:20,
               //width:400,
               left:0,
               bottom:0,
               itemWidth: 5,
               itemHeight:5,
               //data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
               data:['']
             },
             grid:{
               // show:true,
               left: 40,
               
               // right:0,                  
               top: '10%',
               bottom: '15%',
               // right: 40,
               // width:'100%', 
               // borderColor: 'rgba(255, 0, 0, 1)',            
               containLabel: true
             },
             toolbox: {
               feature: {
                 saveAsImage: {}
               }
             },
             xAxis: {
               type: 'category',            
               boundaryGap: true,
               interval: 0,
               data: [],
               axisLabel: {
                 color:'#333',
               },
               axisLine: {
                 show: false,
                 lineStyle: {
                   color: 'rgba(204,204,204,0.2)'
                 }
               },
               axisTick: {
                 show: false
               }
             },
             yAxis: {
               type: 'value',
               splitLine:false,
               axisLabel: {
                 color:'#333',
               },
               axisLine: {
                 show: false,
                 lineStyle: {
                   color: 'rgba(204,204,204,0.2)'
                 }
               },              
               axisTick:{
                 show: false
               },
               splitLine: {
                 lineStyle: {
                   color: 'rgba(204,204,204,0.2)'
                 }
               },
             },          
             series: [{            
               name:'',
               type:'line',
               stack: '总量',
               data:[]
             },
             {
               name:'',
               type:'line',
               stack: '',
               data:[]
             }
             ]
           },// baseOption        
           media: [{
             query: {
   
             },
             option: {
   
             }
           }]
         }
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   
   
   

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