{"action":"created","issue":{"url":"https://api.github.com/repos/antvis/f2/issues/316","repository_url":"https://api.github.com/repos/antvis/f2","labels_url":"https://api.github.com/repos/antvis/f2/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/antvis/f2/issues/316/comments","events_url":"https://api.github.com/repos/antvis/f2/issues/316/events","html_url":"https://github.com/antvis/f2/issues/316","id":358523913,"node_id":"MDU6SXNzdWUzNTg1MjM5MTM=","number":316,"title":"x轴为cat类型时缩放困难，如果为linear则正常，代码如下","user":{"login":"iamllitog","id":6738756,"node_id":"MDQ6VXNlcjY3Mzg3NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6738756?v=4","gravatar_id":"","url":"https://api.github.com/users/iamllitog","html_url":"https://github.com/iamllitog","followers_url":"https://api.github.com/users/iamllitog/followers","following_url":"https://api.github.com/users/iamllitog/following{/other_user}","gists_url":"https://api.github.com/users/iamllitog/gists{/gist_id}","starred_url":"https://api.github.com/users/iamllitog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamllitog/subscriptions","organizations_url":"https://api.github.com/users/iamllitog/orgs","repos_url":"https://api.github.com/users/iamllitog/repos","events_url":"https://api.github.com/users/iamllitog/events{/privacy}","received_events_url":"https://api.github.com/users/iamllitog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"simaQ","id":6628666,"node_id":"MDQ6VXNlcjY2Mjg2NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/6628666?v=4","gravatar_id":"","url":"https://api.github.com/users/simaQ","html_url":"https://github.com/simaQ","followers_url":"https://api.github.com/users/simaQ/followers","following_url":"https://api.github.com/users/simaQ/following{/other_user}","gists_url":"https://api.github.com/users/simaQ/gists{/gist_id}","starred_url":"https://api.github.com/users/simaQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simaQ/subscriptions","organizations_url":"https://api.github.com/users/simaQ/orgs","repos_url":"https://api.github.com/users/simaQ/repos","events_url":"https://api.github.com/users/simaQ/events{/privacy}","received_events_url":"https://api.github.com/users/simaQ/received_events","type":"User","site_admin":false},"assignees":[{"login":"simaQ","id":6628666,"node_id":"MDQ6VXNlcjY2Mjg2NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/6628666?v=4","gravatar_id":"","url":"https://api.github.com/users/simaQ","html_url":"https://github.com/simaQ","followers_url":"https://api.github.com/users/simaQ/followers","following_url":"https://api.github.com/users/simaQ/following{/other_user}","gists_url":"https://api.github.com/users/simaQ/gists{/gist_id}","starred_url":"https://api.github.com/users/simaQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simaQ/subscriptions","organizations_url":"https://api.github.com/users/simaQ/orgs","repos_url":"https://api.github.com/users/simaQ/repos","events_url":"https://api.github.com/users/simaQ/events{/privacy}","received_events_url":"https://api.github.com/users/simaQ/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/antvis/f2/milestones/6","html_url":"https://github.com/antvis/f2/milestone/6","labels_url":"https://api.github.com/repos/antvis/f2/milestones/6/labels","id":3642744,"node_id":"MDk6TWlsZXN0b25lMzY0Mjc0NA==","number":6,"title":"3.2.3","description":"","creator":{"login":"simaQ","id":6628666,"node_id":"MDQ6VXNlcjY2Mjg2NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/6628666?v=4","gravatar_id":"","url":"https://api.github.com/users/simaQ","html_url":"https://github.com/simaQ","followers_url":"https://api.github.com/users/simaQ/followers","following_url":"https://api.github.com/users/simaQ/following{/other_user}","gists_url":"https://api.github.com/users/simaQ/gists{/gist_id}","starred_url":"https://api.github.com/users/simaQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simaQ/subscriptions","organizations_url":"https://api.github.com/users/simaQ/orgs","repos_url":"https://api.github.com/users/simaQ/repos","events_url":"https://api.github.com/users/simaQ/events{/privacy}","received_events_url":"https://api.github.com/users/simaQ/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-09-11T07:43:59Z","updated_at":"2018-09-11T07:44:32Z","due_on":"2018-09-20T07:00:00Z","closed_at":null},"comments":2,"created_at":"2018-09-10T08:44:24Z","updated_at":"2018-09-11T07:52:31Z","closed_at":"2018-09-11T06:49:25Z","author_association":"NONE","body":"* **F2 Version**:3.2.2\r\n* **Platform**:Redmi 5A, MiUi 9.6, Android 7.1.2\r\n* **Mini Showcase(like screenshots)**:\r\n![image](https://user-images.githubusercontent.com/6738756/45286530-afea2380-b518-11e8-841c-dd066bf5d74f.png)\r\n\r\n* **CodePen Link**:\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\">\r\n    <meta name=\"chart-name\" content=\"曲线图的横向平移缩放\">\r\n    <title>F2 图表组件库 - AntV</title>\r\n    <link rel=\"stylesheet\" href=\"https://gw.alipayobjects.com/os/rmsportal/YmDAMEQVbLJpVbKiRQVX.css\" />\r\n\r\n</head>\r\n<body>\r\n<script>/*Fixing iframe window.innerHeight 0 issue in Safari*/document.body.clientHeight;</script>\r\n\r\n<script src=\"https://gw.alipayobjects.com/os/antv/assets/f2/3.2.1/f2-all.min.js\"></script>\r\n\r\n<script src=\"https://gw.alipayobjects.com/os/antv/assets/lib/jquery-3.2.1.min.js\"></script>\r\n<script src=\"https://gw.alipayobjects.com/os/rmsportal/NjNldKHIVQRozfbAOJUW.js\"></script>\r\n\r\n  <div class=\"chart-wrapper\">\r\n    <canvas id=\"mountNode\"></canvas>\r\n  </div>\r\n  <p style=\"text-align: center;\">请使用手机扫码观看</p>\r\n<script>\r\n// Generate sample data\r\nvar data = [];\r\nvar step = Math.PI / 4;\r\nfor (var x = -25; x < 25; x += step) {\r\n  data.push({\r\n    x: x,\r\n    y: Math.sin(x)\r\n  });\r\n}\r\n\r\nvar chart = new F2.Chart({\r\n  id: 'mountNode',\r\n  pixelRatio: window.devicePixelRatio\r\n});\r\n\r\nchart.scale('x', {\r\n  type: 'cat'\r\n});\r\n\r\nchart.source(data);\r\nchart.axis('x', {\r\n  grid: function grid(text) {\r\n    if (text == 0) {\r\n      return {\r\n        lineDash: null\r\n      };\r\n    }\r\n  }\r\n});\r\nchart.axis('y', {\r\n  grid: function grid(text) {\r\n    if (text == 0) {\r\n      return {\r\n        lineDash: null\r\n      };\r\n    }\r\n  }\r\n});\r\nchart.tooltip(false);\r\nchart.interaction('pan', {\r\n  limitRange: {\r\n    x: {\r\n      min: -100,\r\n      max: 100\r\n    }\r\n  }\r\n});\r\nchart.interaction('pinch', {\r\n  maxScale: 5,\r\n  minScale: 1\r\n});\r\nchart.line().position('x*y').shape('smooth');\r\nchart.render();\r\n</script>\r\n\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\n<!-- Enter your issue details below this comment. -->\r\nx轴为cat类型时缩放困难，如果为linear则正常，麻烦看下是本应如此吗？"},"comment":{"url":"https://api.github.com/repos/antvis/f2/issues/comments/420181655","html_url":"https://github.com/antvis/f2/issues/316#issuecomment-420181655","issue_url":"https://api.github.com/repos/antvis/f2/issues/316","id":420181655,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDE4MTY1NQ==","user":{"login":"iamllitog","id":6738756,"node_id":"MDQ6VXNlcjY3Mzg3NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6738756?v=4","gravatar_id":"","url":"https://api.github.com/users/iamllitog","html_url":"https://github.com/iamllitog","followers_url":"https://api.github.com/users/iamllitog/followers","following_url":"https://api.github.com/users/iamllitog/following{/other_user}","gists_url":"https://api.github.com/users/iamllitog/gists{/gist_id}","starred_url":"https://api.github.com/users/iamllitog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamllitog/subscriptions","organizations_url":"https://api.github.com/users/iamllitog/orgs","repos_url":"https://api.github.com/users/iamllitog/repos","events_url":"https://api.github.com/users/iamllitog/events{/privacy}","received_events_url":"https://api.github.com/users/iamllitog/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T07:52:31Z","updated_at":"2018-09-11T07:52:31Z","author_association":"NONE","body":"好的 了解了 这个只是把官网的例子抓了抓改 很多地方都会注意的 谢谢～"}}
{"actor":{"display_login":"iamllitog"}}