{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/227","labels_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/227/comments","events_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/227/events","html_url":"https://github.com/danielgindi/ios-charts/issues/227","id":95733050,"number":227,"title":"How to setup up y-axis with min, max value and a fixed step between the grid lines?","user":{"login":"SvenMuc","id":13385716,"avatar_url":"https://avatars.githubusercontent.com/u/13385716?v=3","gravatar_id":"","url":"https://api.github.com/users/SvenMuc","html_url":"https://github.com/SvenMuc","followers_url":"https://api.github.com/users/SvenMuc/followers","following_url":"https://api.github.com/users/SvenMuc/following{/other_user}","gists_url":"https://api.github.com/users/SvenMuc/gists{/gist_id}","starred_url":"https://api.github.com/users/SvenMuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SvenMuc/subscriptions","organizations_url":"https://api.github.com/users/SvenMuc/orgs","repos_url":"https://api.github.com/users/SvenMuc/repos","events_url":"https://api.github.com/users/SvenMuc/events{/privacy}","received_events_url":"https://api.github.com/users/SvenMuc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-17T20:01:53Z","updated_at":"2015-07-19T14:44:06Z","closed_at":"2015-07-19T13:35:26Z","body":"Hi,\r\nI'm just in the learning phase of using ios-charts. I like to change the x-axis grid to fixed values.\r\nMy plotted y-values are just int numbers like 1, 2, 3,..., 10. Nevertheless the left y-axis shows values like 6.3, 9.1, etc., depending on my zoom level.\r\nThe second question is, how to setup the x-axis in order to show the labels 1,5,10,15,....40?\r\n\r\nIs there any way to influence the step size like e.g. in Excel?\r\n\r\n```swift\r\n// zoom y-axis to min/max value\r\nlineChart.leftAxis.customAxisMin = max(0.0, lineChart.data!.yMin - 1.0)\r\nlineChart.leftAxis.customAxisMax = min(10.0, lineChart.data!.yMax + 1.0)\r\nlineChart.leftAxis.startAtZeroEnabled = false\r\n```\r\n\r\n**Chart (min = 6.0 and max = 10.0):**\r\n![linechartview](https://cloud.githubusercontent.com/assets/13385716/8755816/fb4f30e4-2ccd-11e5-990d-abd6fb7ecd3c.png)\r\n\r\nThe arrangement strongly depends on the min and max value.\r\n\r\n**Chart (min = 3.0 and max = 10.0):**\r\n![bildschirmfoto 2015-07-17 um 22 13 16](https://cloud.githubusercontent.com/assets/13385716/8756271/5855653a-2cd1-11e5-85de-b8799a07b8e4.png)\r\n\r\nThanks for your support."},"comment":{"url":"https://api.github.com/repos/danielgindi/ios-charts/issues/comments/122667312","html_url":"https://github.com/danielgindi/ios-charts/issues/227#issuecomment-122667312","issue_url":"https://api.github.com/repos/danielgindi/ios-charts/issues/227","id":122667312,"user":{"login":"danielgindi","id":366926,"avatar_url":"https://avatars.githubusercontent.com/u/366926?v=3","gravatar_id":"","url":"https://api.github.com/users/danielgindi","html_url":"https://github.com/danielgindi","followers_url":"https://api.github.com/users/danielgindi/followers","following_url":"https://api.github.com/users/danielgindi/following{/other_user}","gists_url":"https://api.github.com/users/danielgindi/gists{/gist_id}","starred_url":"https://api.github.com/users/danielgindi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielgindi/subscriptions","organizations_url":"https://api.github.com/users/danielgindi/orgs","repos_url":"https://api.github.com/users/danielgindi/repos","events_url":"https://api.github.com/users/danielgindi/events{/privacy}","received_events_url":"https://api.github.com/users/danielgindi/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T14:44:06Z","updated_at":"2015-07-19T14:44:06Z","body":"If I have the time later I'll try to give you a more detailed answer"}}