{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/2099","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/2099/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/2099/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/2099/events","html_url":"https://github.com/ecomfe/echarts/issues/2099","id":111546260,"number":2099,"title":"Div 高和宽不能设100%?? 是Bug吗? 还是设错了","user":{"login":"kennethhutw","id":11795929,"avatar_url":"https://avatars.githubusercontent.com/u/11795929?v=3","gravatar_id":"","url":"https://api.github.com/users/kennethhutw","html_url":"https://github.com/kennethhutw","followers_url":"https://api.github.com/users/kennethhutw/followers","following_url":"https://api.github.com/users/kennethhutw/following{/other_user}","gists_url":"https://api.github.com/users/kennethhutw/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethhutw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethhutw/subscriptions","organizations_url":"https://api.github.com/users/kennethhutw/orgs","repos_url":"https://api.github.com/users/kennethhutw/repos","events_url":"https://api.github.com/users/kennethhutw/events{/privacy}","received_events_url":"https://api.github.com/users/kennethhutw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-15T05:14:44Z","updated_at":"2016-05-18T05:58:21Z","closed_at":"2015-10-15T05:56:25Z","body":"\r\n![2015-10-15_131330](https://cloud.githubusercontent.com/assets/11795929/10505319/aef87748-733e-11e5-954d-939e97433355.png)\r\n\r\n<div id=\"container\" style=\"width: 100%; height: 100%; margin: 0 auto\">\r\n<script type=\"text/javascript\">\r\nvar myChart = echarts.init(document.getElementById('container')); \r\nvar option = {\r\n    tooltip : {\r\n        trigger: 'axis',\r\n        axisPointer : {            // 坐标轴指示器，坐标轴触发有效\r\n            type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'\r\n        }\r\n    },\r\n    legend: {\r\n        data:['利润', '支出', '收入']\r\n    },\r\n    toolbox: {\r\n        show : true,\r\n        feature : {\r\n            mark : {show: true},\r\n            dataView : {show: true, readOnly: false},\r\n            magicType : {show: true, type: ['line', 'bar']},\r\n            restore : {show: true},\r\n            saveAsImage : {show: true}\r\n        }\r\n    },\r\n    calculable : true,\r\n    xAxis : [\r\n        {\r\n            type : 'value'\r\n        }\r\n    ],\r\n    yAxis : [\r\n        {\r\n            type : 'category',\r\n            axisTick : {show: false},\r\n            data : ['周一','周二','周三','周四','周五','周六','周日']\r\n        }\r\n    ],\r\n    series : [\r\n        {\r\n            name:'利润',\r\n            type:'bar',\r\n            itemStyle : { normal: {label : {show: true, position: 'inside'}}},\r\n            data:[200, 170, 240, 244, 200, 220, 210]\r\n        },\r\n        {\r\n            name:'收入',\r\n            type:'bar',\r\n            stack: '总量',\r\n            barWidth : 5,\r\n            itemStyle: {normal: {\r\n                label : {show: true}\r\n            }},\r\n            data:[320, 302, 341, 374, 390, 450, 420]\r\n        },\r\n        {\r\n            name:'支出',\r\n            type:'bar',\r\n            stack: '总量',\r\n            itemStyle: {normal: {\r\n                label : {show: true, position: 'left'}\r\n            }},\r\n            data:[-120, -132, -101, -134, -190, -230, -210]\r\n        }\r\n    ]\r\n};\r\n                    \r\n \r\n   myChart.setOption(option); \r\n\r\n\t\t</script>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/219932446","html_url":"https://github.com/ecomfe/echarts/issues/2099#issuecomment-219932446","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/2099","id":219932446,"user":{"login":"yanglihuiylh102","id":19162608,"avatar_url":"https://avatars.githubusercontent.com/u/19162608?v=3","gravatar_id":"","url":"https://api.github.com/users/yanglihuiylh102","html_url":"https://github.com/yanglihuiylh102","followers_url":"https://api.github.com/users/yanglihuiylh102/followers","following_url":"https://api.github.com/users/yanglihuiylh102/following{/other_user}","gists_url":"https://api.github.com/users/yanglihuiylh102/gists{/gist_id}","starred_url":"https://api.github.com/users/yanglihuiylh102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanglihuiylh102/subscriptions","organizations_url":"https://api.github.com/users/yanglihuiylh102/orgs","repos_url":"https://api.github.com/users/yanglihuiylh102/repos","events_url":"https://api.github.com/users/yanglihuiylh102/events{/privacy}","received_events_url":"https://api.github.com/users/yanglihuiylh102/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T05:58:21Z","updated_at":"2016-05-18T05:58:21Z","body":"@kennethhutw 不是，你解决了能不能发一下你是怎么解决的，大家有类似的问题也可以互相学习一下啊"}}