{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1962","repository_url":"https://api.github.com/repos/PhilJay/MPAndroidChart","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1962/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1962/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1962/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1962","id":164065508,"number":1962,"title":"Missing addXValue() in the example of Dynamic & Realtime Data tutorial","user":{"login":"hankes-garden","id":2509289,"avatar_url":"https://avatars.githubusercontent.com/u/2509289?v=3","gravatar_id":"","url":"https://api.github.com/users/hankes-garden","html_url":"https://github.com/hankes-garden","followers_url":"https://api.github.com/users/hankes-garden/followers","following_url":"https://api.github.com/users/hankes-garden/following{/other_user}","gists_url":"https://api.github.com/users/hankes-garden/gists{/gist_id}","starred_url":"https://api.github.com/users/hankes-garden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankes-garden/subscriptions","organizations_url":"https://api.github.com/users/hankes-garden/orgs","repos_url":"https://api.github.com/users/hankes-garden/repos","events_url":"https://api.github.com/users/hankes-garden/events{/privacy}","received_events_url":"https://api.github.com/users/hankes-garden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T12:35:48Z","updated_at":"2016-07-06T12:48:16Z","closed_at":"2016-07-06T12:48:16Z","body":"In the webpage of [Dynamic & Realtime Data](https://github.com/PhilJay/MPAndroidChart/wiki/Dynamic-&-Realtime-Data), two examples are given at the end of tutorial: [DynamicalAddingActivity] (https://github.com/PhilJay/MPAndroidChart/blob/master/MPChartExample/src/com/xxmassdeveloper/mpchartexample/DynamicalAddingActivity.java) and [RealtimeDataActivity](https://github.com/PhilJay/MPAndroidChart/blob/master/MPChartExample/src/com/xxmassdeveloper/mpchartexample/RealtimeLineChartActivity.java).\r\n\r\nBoth of these two examples use ChartData.addEntry() function to add a point. However, calling this function without corresponding invoke of ChartData.addXValue() can cause a fail on the ChartData.checkLegal() and raise an IllegalArgumentException saying \"One or more of the DataSet Entry arrays are longer than the x-values array of this ChartData object\".\r\n\r\nSince this tutorial targets at newbies, this can be very confusing."},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/230761184","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1962#issuecomment-230761184","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1962","id":230761184,"user":{"login":"PhilJay","id":6759734,"avatar_url":"https://avatars.githubusercontent.com/u/6759734?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilJay","html_url":"https://github.com/PhilJay","followers_url":"https://api.github.com/users/PhilJay/followers","following_url":"https://api.github.com/users/PhilJay/following{/other_user}","gists_url":"https://api.github.com/users/PhilJay/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilJay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilJay/subscriptions","organizations_url":"https://api.github.com/users/PhilJay/orgs","repos_url":"https://api.github.com/users/PhilJay/repos","events_url":"https://api.github.com/users/PhilJay/events{/privacy}","received_events_url":"https://api.github.com/users/PhilJay/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T12:48:16Z","updated_at":"2016-07-06T12:48:16Z","body":"This can only happen if your code is based on an outdated version of this library.\r\nAs the new release states the current documentation is not up to date so developers should refer to the example project only for the time being.\r\n\r\nhttps://github.com/PhilJay/MPAndroidChart/releases"}}
{"actor":{"display_login":"PhilJay"}}