{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/1234","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/1234/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/1234/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/1234/events","html_url":"https://github.com/ecomfe/echarts/issues/1234","id":56209544,"number":1234,"title":"如何能画出45度线","user":{"login":"suerdnlu","id":9306966,"avatar_url":"https://avatars.githubusercontent.com/u/9306966?v=3","gravatar_id":"","url":"https://api.github.com/users/suerdnlu","html_url":"https://github.com/suerdnlu","followers_url":"https://api.github.com/users/suerdnlu/followers","following_url":"https://api.github.com/users/suerdnlu/following{/other_user}","gists_url":"https://api.github.com/users/suerdnlu/gists{/gist_id}","starred_url":"https://api.github.com/users/suerdnlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suerdnlu/subscriptions","organizations_url":"https://api.github.com/users/suerdnlu/orgs","repos_url":"https://api.github.com/users/suerdnlu/repos","events_url":"https://api.github.com/users/suerdnlu/events{/privacy}","received_events_url":"https://api.github.com/users/suerdnlu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T08:46:10Z","updated_at":"2015-02-06T06:22:52Z","closed_at":null,"body":"现在画散点图，需要一根45度线。怎么画呢？\r\n\r\noption = {\r\n    title : {\r\n        text: '酒店性价比',\r\n        subtext: ''\r\n    },\r\n    tooltip : {\r\n        trigger: 'axis',\r\n        showDelay : 0,\r\n        formatter : function (params) {\r\n            if (params.value.length > 1) {\r\n                return params.seriesName + ' :<br/>'\r\n                   + params.value[0] + 'cm ' \r\n                   + params.value[1] + 'kg ';\r\n            }\r\n            else {\r\n                return params.seriesName + ' :<br/>'\r\n                   + params.name + ' : '\r\n                   + params.value + 'kg ';\r\n            }\r\n        },  \r\n        axisPointer:{\r\n            type : 'cross',\r\n            lineStyle: {\r\n                type : 'dashed',\r\n                width : 1\r\n            }\r\n        }\r\n    },\r\n    legend: {\r\n        data:['竞争1','竞争2','竞争3','竞争4','竞争5','自己']\r\n    },\r\n    toolbox: {\r\n        show : true,\r\n        feature : {\r\n            mark : {show: true},\r\n            dataZoom : {show: true},\r\n            dataView : {show: true, readOnly: false},\r\n            restore : {show: true},\r\n            saveAsImage : {show: true}\r\n        }\r\n    },\r\n    xAxis : [\r\n        {\r\n            type : 'value',\r\n            scale:true,\r\n            axisLabel : {\r\n                formatter: '{value}'\r\n            }\r\n        }\r\n    ],\r\n    yAxis : [\r\n        {\r\n            type : 'value',\r\n            scale:true,\r\n            axisLabel : {\r\n                formatter: '{value}'\r\n            }\r\n        }\r\n    ],\r\n    series : [\r\n        {\r\n            name:'竞争1',\r\n            type:'scatter',\r\n            data: [[5, 250]\r\n            ],\r\n       \r\n        },\r\n        {\r\n             name:'竞争2',\r\n            type:'scatter',\r\n            data: [[4.5,220]\r\n            ],\r\n       \r\n        },\r\n      {\r\n             name:'竞争3',\r\n            type:'scatter',\r\n            data: [[4,250]\r\n            ],\r\n       \r\n        },\r\n      {\r\n             name:'竞争4',\r\n            type:'scatter',\r\n            data: [[3.5,190]\r\n            ],\r\n       \r\n        },\r\n      {\r\n             name:'竞争5',\r\n            type:'scatter',\r\n            data: [[3.0,210]\r\n            ],\r\n       \r\n        },\r\n      {\r\n             name:'自己',\r\n            type:'scatter',\r\n            data: [[4,200]\r\n            ],\r\n       \r\n        },\r\n      \r\n    ]\r\n};\r\n                 \r\n![default](https://cloud.githubusercontent.com/assets/9306966/5997827/48ad8c50-aafb-11e4-94ca-83de00eeb75d.JPG)\r\n如何画的如辅助线一样\r\n   "},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/73188293","html_url":"https://github.com/ecomfe/echarts/issues/1234#issuecomment-73188293","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/1234","id":73188293,"user":{"login":"suerdnlu","id":9306966,"avatar_url":"https://avatars.githubusercontent.com/u/9306966?v=3","gravatar_id":"","url":"https://api.github.com/users/suerdnlu","html_url":"https://github.com/suerdnlu","followers_url":"https://api.github.com/users/suerdnlu/followers","following_url":"https://api.github.com/users/suerdnlu/following{/other_user}","gists_url":"https://api.github.com/users/suerdnlu/gists{/gist_id}","starred_url":"https://api.github.com/users/suerdnlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suerdnlu/subscriptions","organizations_url":"https://api.github.com/users/suerdnlu/orgs","repos_url":"https://api.github.com/users/suerdnlu/repos","events_url":"https://api.github.com/users/suerdnlu/events{/privacy}","received_events_url":"https://api.github.com/users/suerdnlu/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T06:22:52Z","updated_at":"2015-02-06T06:22:52Z","body":"x是按类目的 并非数值，如何能确定x，y之间的比例呢？"}}