{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/778","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/778/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/778/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/778","id":89220203,"number":778,"title":"Make chart data and/or datatsets serializable and/or parcelable","user":{"login":"Pitel","id":113248,"avatar_url":"https://avatars.githubusercontent.com/u/113248?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitel","html_url":"https://github.com/Pitel","followers_url":"https://api.github.com/users/Pitel/followers","following_url":"https://api.github.com/users/Pitel/following{/other_user}","gists_url":"https://api.github.com/users/Pitel/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitel/subscriptions","organizations_url":"https://api.github.com/users/Pitel/orgs","repos_url":"https://api.github.com/users/Pitel/repos","events_url":"https://api.github.com/users/Pitel/events{/privacy}","received_events_url":"https://api.github.com/users/Pitel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-18T07:23:39Z","updated_at":"2015-06-26T11:39:01Z","closed_at":"2015-06-26T11:39:00Z","body":"This will allow easy passing of data. Eg, when your chart has live updated data, and you rotate screen, and your activity is recreated, you will be able to easily do:\r\n```java\r\n@Override\r\npublic void onSaveInstanceState(final Bundle outState) {\r\n\toutState.putSerializable(\"chart\", barChart.getData());\r\n\t//outState.putParcelable(\"chart\", barChart.getData());\r\n}\r\n```\r\nand then restore data in `onCreate`.\r\n\r\nParcelable will be preferred. It's difficult to implement, but should be faster to pass those data."},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/115652821","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/778#issuecomment-115652821","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/778","id":115652821,"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":"2015-06-26T11:39:00Z","updated_at":"2015-06-26T11:39:00Z","body":"You are welcome to make a PR for this, unfortunately I currently do not have the time to do this."}}