宇筱博客

  • 解决办法
  • 学无止境
  • 记录时光
  • 百宝箱
宇筱博客
点滴记忆,汇聚成海。
  1. 首页
  2. 解决办法
  3. 正文

echarts 调整图表大小

2017年1月5日 591点热度 0人点赞 0条评论

内部图表大小是与div容器大小相关的,如果想调整图表大小,调整div就可以了

如果是想调整图表与div间上下左右留白,则设置grid属性就可以了

bba1cd11728b4710c8e0861acbcec3fdfd03231c

具体如下:

myChart.setOption({  
                title:{
                    text:"价格指数"
                },
                grid:{
                    x:25,
                    y:45,
                    x2:5,
                    y2:20,
                    borderWidth:1
                },
                ....

原文链接:https://zhidao.baidu.com/question/2120189701922336907.html

标签: 暂无
最后更新:2022年3月23日

小渔民

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2025 宇筱博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备15017825号-2