{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/v-charts/issues/486","repository_url":"https://api.github.com/repos/ElemeFE/v-charts","labels_url":"https://api.github.com/repos/ElemeFE/v-charts/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/v-charts/issues/486/comments","events_url":"https://api.github.com/repos/ElemeFE/v-charts/issues/486/events","html_url":"https://github.com/ElemeFE/v-charts/issues/486","id":350728367,"node_id":"MDU6SXNzdWUzNTA3MjgzNjc=","number":486,"title":"环形图宽高设置失效","user":{"login":"Antipyrine101","id":30100237,"node_id":"MDQ6VXNlcjMwMTAwMjM3","avatar_url":"https://avatars1.githubusercontent.com/u/30100237?v=4","gravatar_id":"","url":"https://api.github.com/users/Antipyrine101","html_url":"https://github.com/Antipyrine101","followers_url":"https://api.github.com/users/Antipyrine101/followers","following_url":"https://api.github.com/users/Antipyrine101/following{/other_user}","gists_url":"https://api.github.com/users/Antipyrine101/gists{/gist_id}","starred_url":"https://api.github.com/users/Antipyrine101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antipyrine101/subscriptions","organizations_url":"https://api.github.com/users/Antipyrine101/orgs","repos_url":"https://api.github.com/users/Antipyrine101/repos","events_url":"https://api.github.com/users/Antipyrine101/events{/privacy}","received_events_url":"https://api.github.com/users/Antipyrine101/received_events","type":"User","site_admin":false},"labels":[{"id":1011022318,"node_id":"MDU6TGFiZWwxMDExMDIyMzE4","url":"https://api.github.com/repos/ElemeFE/v-charts/labels/need%20reply","name":"need reply","color":"fef2c0","default":false},{"id":608122485,"node_id":"MDU6TGFiZWw2MDgxMjI0ODU=","url":"https://api.github.com/repos/ElemeFE/v-charts/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-15T08:32:08Z","updated_at":"2018-08-27T10:25:53Z","closed_at":null,"author_association":"NONE","body":"### Summary 简述\r\n\r\n1、环形图height绑定后width不随之变化，导致图片渲染一半\r\n2、每次刷新页面，环形图都渲染不出来，canvas的width为0，此时需要有代码的改动和保存，或者拉拽一下浏览器中调试板和主面板的间隔线才能渲染出来\r\n\r\n### Expect 期望结果\r\n正常显示\r\n\r\n\r\n### Reproduce 重现示例\r\n<!-- Screenshots or JSFiddle links or sample code -->\r\n<!-- 截图或JSFiddle链接或示例代码 -->\r\n引用代码\r\n<img width=\"155\" alt=\"2222\" src=\"https://user-images.githubusercontent.com/30100237/44138936-20d7c8de-a0a8-11e8-80f6-c9fd4f8f2e0b.png\">\r\n<img width=\"653\" alt=\"11111\" src=\"https://user-images.githubusercontent.com/30100237/44138943-282d97d0-a0a8-11e8-9ff1-198ddb1074be.png\">\r\n刷新之后：\r\n<img width=\"456\" alt=\"3333\" src=\"https://user-images.githubusercontent.com/30100237/44138962-35e6b492-a0a8-11e8-9981-3049287edbe4.png\">\r\n<img width=\"539\" alt=\"77777\" src=\"https://user-images.githubusercontent.com/30100237/44138963-36129ff8-a0a8-11e8-976d-156f5ae535a8.png\">\r\n拉拽页面之后\r\n\r\n<img width=\"572\" alt=\"66666\" src=\"https://user-images.githubusercontent.com/30100237/44139013-618a33e4-a0a8-11e8-8632-1abeff782600.png\">\r\n<img width=\"458\" alt=\"5555\" src=\"https://user-images.githubusercontent.com/30100237/44139017-69b17af0-a0a8-11e8-99c8-7d89a4403502.png\">\r\n\r\n拉拽指的是拉这里：\r\n<img width=\"590\" alt=\"88888\" src=\"https://user-images.githubusercontent.com/30100237/44139087-a0149cd0-a0a8-11e8-986d-56e0f6083122.png\">\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/v-charts/issues/comments/416183735","html_url":"https://github.com/ElemeFE/v-charts/issues/486#issuecomment-416183735","issue_url":"https://api.github.com/repos/ElemeFE/v-charts/issues/486","id":416183735,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjE4MzczNQ==","user":{"login":"liukun","id":705581,"node_id":"MDQ6VXNlcjcwNTU4MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/705581?v=4","gravatar_id":"","url":"https://api.github.com/users/liukun","html_url":"https://github.com/liukun","followers_url":"https://api.github.com/users/liukun/followers","following_url":"https://api.github.com/users/liukun/following{/other_user}","gists_url":"https://api.github.com/users/liukun/gists{/gist_id}","starred_url":"https://api.github.com/users/liukun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liukun/subscriptions","organizations_url":"https://api.github.com/users/liukun/orgs","repos_url":"https://api.github.com/users/liukun/repos","events_url":"https://api.github.com/users/liukun/events{/privacy}","received_events_url":"https://api.github.com/users/liukun/received_events","type":"User","site_admin":false},"created_at":"2018-08-27T10:25:53Z","updated_at":"2018-08-27T10:25:53Z","author_association":"NONE","body":"宽高可以用\r\n\r\n    totalRingSetting: {\r\n        grid: {\r\n          width: '174px',\r\n          height: '159px',\r\n        },\r\n        radius: ['60%', '70%'],\r\n    }\r\n\r\n不过比较讨厌的是`center`默认设置成了`['50%',200]`，只能是通过`after-config`回调修改……"}}
{"actor":{"display_login":"liukun"}}