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/31 02:39:32 UTC

[GitHub] jaslou opened a new issue #8430: echarts tree(纵向)高度问题

jaslou opened a new issue #8430: echarts tree(纵向)高度问题
URL: https://github.com/apache/incubator-echarts/issues/8430
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [tree 当设置树所在的div的height大于32000px的时候树就显示不出来了,一片空白,但是用IE11话可以显示,但是最后面的节点显示不全]
   正常的div高度可以设置的可不止32000px。
   
   
   相关代码如下:
   
   var container = document.getElementById('echarts-line-chart');
   var allNodes=lineChart._chartsViews[0]._data._graphicEls;
   var currentHeight=20*(allNodes.length-1);
   var newWidth=Math.max(currentHeight,height);
   container.style.height = newWidth + 'px';  
   myChart.resize();
   
   当newWidth大于33000px的时候整颗树就显示不出来了。请问一下是什么原因呢?谢谢!
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [4.0.0]:
   + Browser version [Chrome 66.0.3359.181 or Firefox 60.0.1]:
   + OS Version [win10]:
   
   
   
   
   
   ### Expected behaviour [期望结果]
   不管设置height为多少,只要不操作html标签的最大高度的话应该可以显示的。
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   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