{"action":"opened","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/1581","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/1581/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/1581/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/1581/events","html_url":"https://github.com/ecomfe/echarts/issues/1581","id":81216649,"number":1581,"title":"图表的容器dom隐藏后然后显示。出现的图表太小了。","user":{"login":"shikelong123","id":4499997,"avatar_url":"https://avatars.githubusercontent.com/u/4499997?v=3","gravatar_id":"","url":"https://api.github.com/users/shikelong123","html_url":"https://github.com/shikelong123","followers_url":"https://api.github.com/users/shikelong123/followers","following_url":"https://api.github.com/users/shikelong123/following{/other_user}","gists_url":"https://api.github.com/users/shikelong123/gists{/gist_id}","starred_url":"https://api.github.com/users/shikelong123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shikelong123/subscriptions","organizations_url":"https://api.github.com/users/shikelong123/orgs","repos_url":"https://api.github.com/users/shikelong123/repos","events_url":"https://api.github.com/users/shikelong123/events{/privacy}","received_events_url":"https://api.github.com/users/shikelong123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-27T01:29:48Z","updated_at":"2015-05-27T01:29:48Z","closed_at":null,"body":"```html\r\n <!--饼图 -->\r\n            <div ng-show=\"showChartType=='pie'\">              \r\n                        <!-- pie:上报事件比例图:全院及科室-->\r\n                        <div class=\"col echartContent\" id=\"eventsProportionPie\" ng-controller=\"eventProportionController\"></div>         \r\n            </div>\r\n            <!--柏拉图 -->\r\n            <div ng-show=\"showChartType=='plato'\">\r\n                 <div class=\"echartContent\" id=\"plato\"></div>\r\n            </div>\r\n            <!--折线图 -->\r\n            <div ng-show=\"showChartType=='line'\">\r\n                 <div class=\"echartContent\" ng-controller=\"trendLineController\" id=\"trendLine\"></div>\r\n            </div>\r\n```\r\n···css\r\n.echartContent{\r\n\r\n\twidth: 100%;\r\n\theight: 400px;\r\n}\r\n```\r\n![plato](https://cloud.githubusercontent.com/assets/4499997/7826891/e39c4cd2-0452-11e5-97e3-239e0c77592e.png)\r\n\r\n\r\n类似于这样的写法。在页面加载完成以后的图表显示正常。然后切换图标的隐藏显示之后，图表就很小。 如果把dom容器的width定义为绝对的px.那么图表大小不变。 请问有其他方法能解决这个问题吗? "}}