{"action":"closed","issue":{"url":"https://api.github.com/repos/recharts/recharts/issues/633","repository_url":"https://api.github.com/repos/recharts/recharts","labels_url":"https://api.github.com/repos/recharts/recharts/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/recharts/recharts/issues/633/comments","events_url":"https://api.github.com/repos/recharts/recharts/issues/633/events","html_url":"https://github.com/recharts/recharts/issues/633","id":222128691,"number":633,"title":"Custom y-axis","user":{"login":"jpmelnik","id":429547,"avatar_url":"https://avatars2.githubusercontent.com/u/429547?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmelnik","html_url":"https://github.com/jpmelnik","followers_url":"https://api.github.com/users/jpmelnik/followers","following_url":"https://api.github.com/users/jpmelnik/following{/other_user}","gists_url":"https://api.github.com/users/jpmelnik/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmelnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmelnik/subscriptions","organizations_url":"https://api.github.com/users/jpmelnik/orgs","repos_url":"https://api.github.com/users/jpmelnik/repos","events_url":"https://api.github.com/users/jpmelnik/events{/privacy}","received_events_url":"https://api.github.com/users/jpmelnik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-17T13:03:58Z","updated_at":"2017-04-17T14:29:01Z","closed_at":"2017-04-17T14:29:01Z","body":"I need a custom \"y axis\" from 130 to 200.  Where 130 is the base line.\r\nHow can I do that?\r\n\r\n**Each line are independent of yAxis values. yAxis is only for representation purpose.**\r\n\r\n```\r\nconst yAxisProps = {\r\n      name:\"Height\",\r\n      unit:\"cm\",\r\n      allowDataOverflow: true,\r\n      mirror: false,\r\n      reversed: true,\r\n      label:\"Height\",\r\n      domain: ['dataMin', 'dataMax'],\r\n      interval: \"preserveStart\",\r\n      ticks: [130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, 200]\r\n    };\r\n\r\n<LineChart width={750} height={550} data={this.data()}\r\n          margin={{ top: 15, right: 20, left: 20, bottom: 15 }}>\r\n          <XAxis {...xAxisProps} />\r\n          <YAxis {...yAxisProps} />\r\n          {/*<CartesianGrid />*/}\r\n          {/*<CartesianAxis />*/}\r\n          <Tooltip />\r\n          <Legend />\r\n          <Line type=\"monotone\" dataKey=\"d\" stroke=\"#FF0403\" />\r\n          <Line type=\"monotone\" dataKey=\"c\" stroke=\"#E8760F\" />\r\n          <Line type=\"monotone\" dataKey=\"b\" stroke=\"#AA29E8\" />\r\n          <Line type=\"monotone\" dataKey=\"a\" stroke=\"#5D7DFF\" />\r\n   </LineChart>\r\n```"}}
{"actor":{"display_login":"xile611"}}