{"action":"created","issue":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/1331","repository_url":"https://api.github.com/repos/danielgindi/Charts","labels_url":"https://api.github.com/repos/danielgindi/Charts/issues/1331/labels{/name}","comments_url":"https://api.github.com/repos/danielgindi/Charts/issues/1331/comments","events_url":"https://api.github.com/repos/danielgindi/Charts/issues/1331/events","html_url":"https://github.com/danielgindi/Charts/issues/1331","id":171762585,"number":1331,"title":"values from array for x axis on barchart","user":{"login":"seal62","id":5068912,"avatar_url":"https://avatars.githubusercontent.com/u/5068912?v=3","gravatar_id":"","url":"https://api.github.com/users/seal62","html_url":"https://github.com/seal62","followers_url":"https://api.github.com/users/seal62/followers","following_url":"https://api.github.com/users/seal62/following{/other_user}","gists_url":"https://api.github.com/users/seal62/gists{/gist_id}","starred_url":"https://api.github.com/users/seal62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seal62/subscriptions","organizations_url":"https://api.github.com/users/seal62/orgs","repos_url":"https://api.github.com/users/seal62/repos","events_url":"https://api.github.com/users/seal62/events{/privacy}","received_events_url":"https://api.github.com/users/seal62/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-17T21:16:57Z","updated_at":"2016-08-26T09:06:24Z","closed_at":"2016-08-26T09:06:24Z","body":"I am using the new version of Charts and can figure out how to take a string value from an array and use it as the x-axis value. Using the examples provided I have the below, which generates a bar chart with these y values but x is just 0, 1, 2, 3 etc.. how do I change that to use the days array values? looking at the BarChartEntry class it only accepts Doubles? \r\n\r\n```\r\nlet values: [Double] = [8, 104, 81, 93, 52, 44, 97]\r\nlet days: [String] = [\"mon\", \"tues\", \"weds\", \"thurs\", \"fri\", \"sat\", \"sun\"]\r\n        \r\nvar entries: [ChartDataEntry] = Array()\r\n        \r\nfor (i, value) in values.enumerate()\r\n        {\r\n            entries.append(BarChartDataEntry(x: Double(i), y: value))\r\n        }\r\n        \r\n```"},"comment":{"url":"https://api.github.com/repos/danielgindi/Charts/issues/comments/242673990","html_url":"https://github.com/danielgindi/Charts/issues/1331#issuecomment-242673990","issue_url":"https://api.github.com/repos/danielgindi/Charts/issues/1331","id":242673990,"user":{"login":"seal62","id":5068912,"avatar_url":"https://avatars.githubusercontent.com/u/5068912?v=3","gravatar_id":"","url":"https://api.github.com/users/seal62","html_url":"https://github.com/seal62","followers_url":"https://api.github.com/users/seal62/followers","following_url":"https://api.github.com/users/seal62/following{/other_user}","gists_url":"https://api.github.com/users/seal62/gists{/gist_id}","starred_url":"https://api.github.com/users/seal62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seal62/subscriptions","organizations_url":"https://api.github.com/users/seal62/orgs","repos_url":"https://api.github.com/users/seal62/repos","events_url":"https://api.github.com/users/seal62/events{/privacy}","received_events_url":"https://api.github.com/users/seal62/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T09:06:24Z","updated_at":"2016-08-26T09:06:24Z","body":"this was answered here - https://github.com/danielgindi/Charts/issues/1340"}}
{"actor":{"display_login":"seal62"}}