{"action":"created","issue":{"url":"https://api.github.com/repos/rrag/react-stockcharts/issues/80","repository_url":"https://api.github.com/repos/rrag/react-stockcharts","labels_url":"https://api.github.com/repos/rrag/react-stockcharts/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/rrag/react-stockcharts/issues/80/comments","events_url":"https://api.github.com/repos/rrag/react-stockcharts/issues/80/events","html_url":"https://github.com/rrag/react-stockcharts/issues/80","id":156420768,"number":80,"title":"Limited Pan and Zoom","user":{"login":"cesardeazevedo","id":5366959,"avatar_url":"https://avatars.githubusercontent.com/u/5366959?v=3","gravatar_id":"","url":"https://api.github.com/users/cesardeazevedo","html_url":"https://github.com/cesardeazevedo","followers_url":"https://api.github.com/users/cesardeazevedo/followers","following_url":"https://api.github.com/users/cesardeazevedo/following{/other_user}","gists_url":"https://api.github.com/users/cesardeazevedo/gists{/gist_id}","starred_url":"https://api.github.com/users/cesardeazevedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesardeazevedo/subscriptions","organizations_url":"https://api.github.com/users/cesardeazevedo/orgs","repos_url":"https://api.github.com/users/cesardeazevedo/repos","events_url":"https://api.github.com/users/cesardeazevedo/events{/privacy}","received_events_url":"https://api.github.com/users/cesardeazevedo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-24T05:07:30Z","updated_at":"2016-05-25T05:30:48Z","closed_at":null,"body":"How to limit zoom and pan? I've a very sensitive mouse (magic mouse), and a little wheel touched it scrolls everything, showing like a very big ticker on the screen, i didn't tested with others mouses though, i would like to limit zoom and pan at some point range.\r\n\r\nI'm almost pretty sure that you did it on the main [demo example](http://rrag.github.io/stockcharts-demo/), but i only found the [compiled version](https://github.com/rrag/rrag.github.io/tree/master/stockcharts-demo) of it, (which i was also very interested at the logic behind the periods 10d, 1m, 5m, 10m), i also didn't find anything related on the API, and not sure if is related to the pan action callback #51 \r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/rrag/react-stockcharts/issues/comments/221476921","html_url":"https://github.com/rrag/react-stockcharts/issues/80#issuecomment-221476921","issue_url":"https://api.github.com/repos/rrag/react-stockcharts/issues/80","id":221476921,"user":{"login":"rrag","id":10691183,"avatar_url":"https://avatars.githubusercontent.com/u/10691183?v=3","gravatar_id":"","url":"https://api.github.com/users/rrag","html_url":"https://github.com/rrag","followers_url":"https://api.github.com/users/rrag/followers","following_url":"https://api.github.com/users/rrag/following{/other_user}","gists_url":"https://api.github.com/users/rrag/gists{/gist_id}","starred_url":"https://api.github.com/users/rrag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrag/subscriptions","organizations_url":"https://api.github.com/users/rrag/orgs","repos_url":"https://api.github.com/users/rrag/repos","events_url":"https://api.github.com/users/rrag/events{/privacy}","received_events_url":"https://api.github.com/users/rrag/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T05:30:48Z","updated_at":"2016-05-25T05:30:48Z","body":"This is not configurable via a prop now.\r\n\r\nOn the `next` branch the zoom can be controlled by modifying this line\r\n\r\nhttps://github.com/rrag/react-stockcharts/blob/next/src/lib/scale/evaluator.js#L95\r\n\r\n```diff\r\n- return arrayLength < width * threshold && arrayLength > 1;\r\n+ return arrayLength < width * threshold && arrayLength > 20;\r\n```\r\n\r\nChange the min number of points to show from 2 to 21,"}}
{"actor":{"display_login":"rrag"}}