{"action":"closed","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3649","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3649/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3649/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3649/events","html_url":"https://github.com/ecomfe/echarts/issues/3649","id":165745375,"number":3649,"title":"3.0关系网circular这个布局节点下面的文字不支持文本标签自动旋转","user":{"login":"feng5125214","id":11515479,"avatar_url":"https://avatars.githubusercontent.com/u/11515479?v=3","gravatar_id":"","url":"https://api.github.com/users/feng5125214","html_url":"https://github.com/feng5125214","followers_url":"https://api.github.com/users/feng5125214/followers","following_url":"https://api.github.com/users/feng5125214/following{/other_user}","gists_url":"https://api.github.com/users/feng5125214/gists{/gist_id}","starred_url":"https://api.github.com/users/feng5125214/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feng5125214/subscriptions","organizations_url":"https://api.github.com/users/feng5125214/orgs","repos_url":"https://api.github.com/users/feng5125214/repos","events_url":"https://api.github.com/users/feng5125214/events{/privacy}","received_events_url":"https://api.github.com/users/feng5125214/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-15T09:23:30Z","updated_at":"2016-08-03T09:30:15Z","closed_at":"2016-08-03T09:30:15Z","body":"问题简述 (One-line summary)\r\n\r\necharts2提供了 label : {\r\n                        rotate : true\r\n                    }这个标签可以修改文本的旋转，echart3貌似不支持文本自动旋转，有什么办法可以自动旋转文本。\r\n\r\n版本及环境 (Version & Environment)\r\n\r\nECharts 版本 (ECharts version):echarts3.0\r\n浏览器类型和版本 (Browser version):微信公众号，android和ios都试了\r\n操作系统类型和版本 (OS Version):android和ios\r\n重现步骤 (Steps to reproduce)\r\n\r\n1.获取json数据\r\n{\r\n\"type\": \"graph\",\r\n\"layout\": \"force\",\r\n\"categories\": [\r\n{\r\n\"name\": \"法人代表\",\r\n\"keyword\": {},\r\n\"base\": \"法人代表关系\"\r\n},\r\n{\r\n\"name\": \"股东\",\r\n\"keyword\": {},\r\n\"base\": \"股东关系\"\r\n},\r\n{\r\n\"name\": \"高管\",\r\n\"keyword\": {},\r\n\"base\": \"高管关系\"\r\n}\r\n],\r\n\"nodes\": [\r\n{\"name\":\"孙高梁\",\"category\":1},\r\n{\"corpid\":\"3301852003000699\",\"name\":\" 嘉兴泰一指尚投资合伙企业（有限合伙）\",\"category\":2},\r\n{\"name\":\"陈枫\",\"category\":1},\r\n{\"corpid\":\"3301850000088925\",\"name\":\"杭州临安佰汇信息有限公司\",\"category\":0},\r\n{\"corpid\":\"3301060001114195\",\"name\":\"杭州树源贸易有限公司\",\"category\":2}\r\n],\r\n\"links\": [\r\n\r\n    {\"source\":\"陈枫\",\"target\":\"孙高梁\"},\r\n\r\n     {\"source\":\" 嘉兴泰一指尚投资合伙企业（有限合伙）\",\"target\":\"孙高梁\"}\r\n]\r\n}\r\n2.ajax请求获取\r\n\r\n期望结果 (Expected behaviour)\r\n\r\nechart3支持文本自动旋转\r\n\r\n可能哪里有问题 (What went wrong)\r\n\r\n\r\n\r\nECharts配置项 (ECharts option)\r\n\r\noption = {\r\nlegend: {\r\ndata: ['HTMLElement', 'WebGL', 'SVG', 'CSS', 'Other']\r\n},\r\nseries: [{\r\ntype: 'graph',\r\nlayout: 'circular',\r\nedgeSymbol: ['circle', 'arrow'],\r\nedgeSymbolSize: [4, 10],\r\nroam: true,\r\nanimation: false,\r\n\r\n                         label: {\r\n                             normal: {\r\n\r\n                                 formatter: '{b}'\r\n                             }\r\n                         },\r\n\r\n\r\n                         draggable: true,\r\n                         data: datajson.nodes.map(function (node, idx) {\r\n                            // node.id = idx;  \r\n                              node.itemStyle = null;\r\n                                node.symbolSize = 40;\r\n\r\n                                // Use random x, y\r\n                                node.x = node.y = null;\r\n                                node.draggable = true;\r\n                             return node;\r\n                         }),\r\n                         categories: datajson.categories,\r\n                         force: {\r\n                             // initLayout: 'circular'\r\n                             // gravity: 0\r\n                             // repulsion: 20,\r\n                             edgeLength: 500,\r\n                             repulsion:800\r\n                         },\r\n                         edges: datajson.links\r\n                     }]\r\n                 };\r\n              myChart.setOption(option);"}}
{"actor":{"display_login":"pissang"}}