{"action":"created","issue":{"url":"https://api.github.com/repos/zemirco/swift-linechart/issues/7","labels_url":"https://api.github.com/repos/zemirco/swift-linechart/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/zemirco/swift-linechart/issues/7/comments","events_url":"https://api.github.com/repos/zemirco/swift-linechart/issues/7/events","html_url":"https://github.com/zemirco/swift-linechart/issues/7","id":52601148,"number":7,"title":"Request help or option for (x-axis, y-axis) data pairs","user":{"login":"tnskier1","id":10261918,"avatar_url":"https://avatars.githubusercontent.com/u/10261918?v=3","gravatar_id":"","url":"https://api.github.com/users/tnskier1","html_url":"https://github.com/tnskier1","followers_url":"https://api.github.com/users/tnskier1/followers","following_url":"https://api.github.com/users/tnskier1/following{/other_user}","gists_url":"https://api.github.com/users/tnskier1/gists{/gist_id}","starred_url":"https://api.github.com/users/tnskier1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnskier1/subscriptions","organizations_url":"https://api.github.com/users/tnskier1/orgs","repos_url":"https://api.github.com/users/tnskier1/repos","events_url":"https://api.github.com/users/tnskier1/events{/privacy}","received_events_url":"https://api.github.com/users/tnskier1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-21T17:41:05Z","updated_at":"2015-01-03T12:36:45Z","closed_at":null,"body":"Hi. Really like swift-linechart!\r\n\r\nIt seems that the current version simply uses the y-axis data point numbers as the x-axis elements, i.e., if there are 10 elements in the [y-axis] data array to be plotted, the x-axis numbers range from 0 to 9. However, I'm trying to plot data for (x-axis, y-axis) data pairs, e.g., (2, 7), (5, 12), (10, 16), ... etc., which are in 2 separate files, e.g. x = [2, 5, 10, ...] and y = [7, 12, 16, ...] , so I can't use swift-linechart in its current form.\r\n\r\nI'm having difficulty trying to understand your existing code, so that I can modify it to suit my needs. Please modify the code to give an [x-axis] [y-axis] plotting option, or help me understand what needs to be modified so that I can make the necessary changes.\r\n\r\nThanks,\r\nDoug"},"comment":{"url":"https://api.github.com/repos/zemirco/swift-linechart/issues/comments/68593653","html_url":"https://github.com/zemirco/swift-linechart/issues/7#issuecomment-68593653","issue_url":"https://api.github.com/repos/zemirco/swift-linechart/issues/7","id":68593653,"user":{"login":"Kartoffelkil","id":10380668,"avatar_url":"https://avatars.githubusercontent.com/u/10380668?v=3","gravatar_id":"","url":"https://api.github.com/users/Kartoffelkil","html_url":"https://github.com/Kartoffelkil","followers_url":"https://api.github.com/users/Kartoffelkil/followers","following_url":"https://api.github.com/users/Kartoffelkil/following{/other_user}","gists_url":"https://api.github.com/users/Kartoffelkil/gists{/gist_id}","starred_url":"https://api.github.com/users/Kartoffelkil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kartoffelkil/subscriptions","organizations_url":"https://api.github.com/users/Kartoffelkil/orgs","repos_url":"https://api.github.com/users/Kartoffelkil/repos","events_url":"https://api.github.com/users/Kartoffelkil/events{/privacy}","received_events_url":"https://api.github.com/users/Kartoffelkil/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T12:36:45Z","updated_at":"2015-01-03T12:36:45Z","body":"That would be great, i tried hours to understand your code, to implement that you can change the distance from one x-coordinate to another. At the moment the distance is set to \"1\". It would be great if you can update your code that we can write two Arrays, one X and one Y. \r\n\r\nThanks Leander"}}