{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/1685","repository_url":"https://api.github.com/repos/danielgindi/Charts","labels_url":"https://api.github.com/repos/danielgindi/Charts/issues/1685/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/Charts/issues/1685/comments","events_url":"https://api.github.com/repos/danielgindi/Charts/issues/1685/events","html_url":"https://github.com/danielgindi/Charts/issues/1685","id":184139256,"number":1685,"title":"problem with custom xaxis labels","user":{"login":"cartmanguo","id":4699162,"avatar_url":"https://avatars.githubusercontent.com/u/4699162?v=3","gravatar_id":"","url":"https://api.github.com/users/cartmanguo","html_url":"https://github.com/cartmanguo","followers_url":"https://api.github.com/users/cartmanguo/followers","following_url":"https://api.github.com/users/cartmanguo/following{/other_user}","gists_url":"https://api.github.com/users/cartmanguo/gists{/gist_id}","starred_url":"https://api.github.com/users/cartmanguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartmanguo/subscriptions","organizations_url":"https://api.github.com/users/cartmanguo/orgs","repos_url":"https://api.github.com/users/cartmanguo/repos","events_url":"https://api.github.com/users/cartmanguo/events{/privacy}","received_events_url":"https://api.github.com/users/cartmanguo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T05:36:33Z","updated_at":"2016-10-21T02:14:57Z","closed_at":"2016-10-21T02:14:57Z","body":"I know we can customize xaxis values by overriding stringForValue function\r\nfunction stringForValue(_ value: Double, axis: AxisBase?) -> String {\r\n        var index = Int(value)\r\n        return xvalsString![index]\r\n }\r\nI have 24 items in the xvalsString,and 24 entries in the chart,but when I print the value parameter,it goes like 0,4,8,12...24,so when value is 24,the array is out of range,so is there a way to prevent this?\r\n"},"comment":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/comments/255276922","html_url":"https://github.com/danielgindi/Charts/issues/1685#issuecomment-255276922","issue_url":"https://api.github.com/repos/danielgindi/Charts/issues/1685","id":255276922,"user":{"login":"cartmanguo","id":4699162,"avatar_url":"https://avatars.githubusercontent.com/u/4699162?v=3","gravatar_id":"","url":"https://api.github.com/users/cartmanguo","html_url":"https://github.com/cartmanguo","followers_url":"https://api.github.com/users/cartmanguo/followers","following_url":"https://api.github.com/users/cartmanguo/following{/other_user}","gists_url":"https://api.github.com/users/cartmanguo/gists{/gist_id}","starred_url":"https://api.github.com/users/cartmanguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartmanguo/subscriptions","organizations_url":"https://api.github.com/users/cartmanguo/orgs","repos_url":"https://api.github.com/users/cartmanguo/repos","events_url":"https://api.github.com/users/cartmanguo/events{/privacy}","received_events_url":"https://api.github.com/users/cartmanguo/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T02:14:57Z","updated_at":"2016-10-21T02:14:57Z","body":"I found the solution in the PositiveNegativeBarChartViewController.m in ChartsDemo"}}
{"actor":{"display_login":"cartmanguo"}}