{"action":"created","issue":{"url":"https://api.github.com/repos/esbullington/react-d3/issues/185","labels_url":"https://api.github.com/repos/esbullington/react-d3/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/esbullington/react-d3/issues/185/comments","events_url":"https://api.github.com/repos/esbullington/react-d3/issues/185/events","html_url":"https://github.com/esbullington/react-d3/issues/185","id":68204720,"number":185,"title":"specifying min/max range for the Y axis in a linechart?","user":{"login":"nurpax","id":297823,"avatar_url":"https://avatars.githubusercontent.com/u/297823?v=3","gravatar_id":"","url":"https://api.github.com/users/nurpax","html_url":"https://github.com/nurpax","followers_url":"https://api.github.com/users/nurpax/followers","following_url":"https://api.github.com/users/nurpax/following{/other_user}","gists_url":"https://api.github.com/users/nurpax/gists{/gist_id}","starred_url":"https://api.github.com/users/nurpax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurpax/subscriptions","organizations_url":"https://api.github.com/users/nurpax/orgs","repos_url":"https://api.github.com/users/nurpax/repos","events_url":"https://api.github.com/users/nurpax/events{/privacy}","received_events_url":"https://api.github.com/users/nurpax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-13T22:04:19Z","updated_at":"2015-04-21T20:51:23Z","closed_at":null,"body":"Is there a way to specify a minimum value for the Y value in a LineChart?\r\n\r\nCurrently it automatically computes min/max Y values and scales the plot to fit into that range.  E.g., if my values are between 100 and 200, the bottom of the chart starts at 100.  But for many purposes, I'd actually like it to start at zero.\r\n\r\nHere's a fiddle that demonstrates what I mean: http://jsfiddle.net/ux1cveed/"},"comment":{"url":"https://api.github.com/repos/esbullington/react-d3/issues/comments/94937680","html_url":"https://github.com/esbullington/react-d3/issues/185#issuecomment-94937680","issue_url":"https://api.github.com/repos/esbullington/react-d3/issues/185","id":94937680,"user":{"login":"nurpax","id":297823,"avatar_url":"https://avatars.githubusercontent.com/u/297823?v=3","gravatar_id":"","url":"https://api.github.com/users/nurpax","html_url":"https://github.com/nurpax","followers_url":"https://api.github.com/users/nurpax/followers","following_url":"https://api.github.com/users/nurpax/following{/other_user}","gists_url":"https://api.github.com/users/nurpax/gists{/gist_id}","starred_url":"https://api.github.com/users/nurpax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurpax/subscriptions","organizations_url":"https://api.github.com/users/nurpax/orgs","repos_url":"https://api.github.com/users/nurpax/repos","events_url":"https://api.github.com/users/nurpax/events{/privacy}","received_events_url":"https://api.github.com/users/nurpax/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T20:51:23Z","updated_at":"2015-04-21T20:51:23Z","body":"@esbullington Please see the PR for what I mean.  There may be better ways of accomplishing the same, this is more of an illustration.\r\n\r\nIt'd be nice to be able to specify one or the other or both of min/max.  E.g., if I give yMin:0, then it'd use zero as the chart minimum but let d3 compute the max Y value automatically.\r\n\r\nI think getting this functionality in one way or the other is an absolute must.  Most of the time, people want their line chart y-min to be at zero.  Unless, of course, you're a marketroid or a statistician wanting to distort reality. :)"}}