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 2019/04/25 11:26:12 UTC

[GitHub] [incubator-echarts] fog3211 opened a new issue #10364: 建议增加resize选项

fog3211 opened a new issue #10364: 建议增加resize选项
URL: https://github.com/apache/incubator-echarts/issues/10364
 
 
   ### What problem does this feature solve?
   建议option中增加一个参数,可以设置图表的大小是否随父元素的大小变化而变化。  
   目前的版本中即使设置了图表的宽度为父元素的100%,在父元素的大小改变时,图表的大小仍不会发生变化。  
   如:  
   [https://codesandbox.io/s/8x1lk9ll9l](https://codesandbox.io/s/8x1lk9ll9l)    
   1.当屏幕的分辨率小于1300px时,打开菜单栏会导致图表超出边界(无论怎么改变屏幕大小canvas的宽度始终不会改变)  
   2.当用户从较小窗口切换到全屏时,会出现空白区域。  
   
   ### What does the proposed API look like?
   建议option中增加一个responsive参数,参数为true时,会监视canvas的父元素的大小,如果发生变化,则重新设置canvas的大小,参数为false时,canvas大小不变.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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