{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/604","repository_url":"https://api.github.com/repos/PhilJay/MPAndroidChart","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/604/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/604/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/604","id":72135893,"number":604,"title":"LineChart animation glitch?","user":{"login":"andyroid42","id":12185058,"avatar_url":"https://avatars.githubusercontent.com/u/12185058?v=3","gravatar_id":"","url":"https://api.github.com/users/andyroid42","html_url":"https://github.com/andyroid42","followers_url":"https://api.github.com/users/andyroid42/followers","following_url":"https://api.github.com/users/andyroid42/following{/other_user}","gists_url":"https://api.github.com/users/andyroid42/gists{/gist_id}","starred_url":"https://api.github.com/users/andyroid42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyroid42/subscriptions","organizations_url":"https://api.github.com/users/andyroid42/orgs","repos_url":"https://api.github.com/users/andyroid42/repos","events_url":"https://api.github.com/users/andyroid42/events{/privacy}","received_events_url":"https://api.github.com/users/andyroid42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2015-04-30T11:41:02Z","updated_at":"2016-08-09T22:29:07Z","closed_at":"2015-04-30T13:12:58Z","body":"Hello,\r\n\r\nI experience some glitch in an animation-enabled line-chart, in particular once the line-chart is shown it displays the graphics based on provided data just for a sec or less without animating its appearance and then starts animation as expected. This causes some short blink effect that I would like to avoid somehow. Please tell me how to do this? Thank you!\r\n\r\n    @Override\r\n    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n        View view = inflater.inflate(R.layout.fragment_line_chart, container, false);\r\n        LineChart chart = (LineChart) view.findViewById(R.id.chart);\r\n        setChartStyling(chart);\r\n        chart.setData(data goes here);\r\n        chart.animateY(3000);\r\n        //chart.invalidate();\r\n\r\n        return view;\r\n    }\r\n\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    android:paddingLeft=\"@dimen/activity_horizontal_margin\"\r\n    android:paddingRight=\"@dimen/activity_horizontal_margin\"\r\n    android:paddingTop=\"@dimen/activity_vertical_margin\"\r\n    android:paddingBottom=\"@dimen/activity_vertical_margin\"\r\n    android:background=\"@layout/background\"\r\n    android:orientation=\"vertical\"\r\n    tools:ignore=\"Overdraw\">\r\n\r\n    <com.github.mikephil.charting.charts.LineChart\r\n        android:id=\"@+id/chart\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\" />\r\n</RelativeLayout>"},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/238712286","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/604#issuecomment-238712286","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/604","id":238712286,"user":{"login":"3mph4515","id":1322887,"avatar_url":"https://avatars.githubusercontent.com/u/1322887?v=3","gravatar_id":"","url":"https://api.github.com/users/3mph4515","html_url":"https://github.com/3mph4515","followers_url":"https://api.github.com/users/3mph4515/followers","following_url":"https://api.github.com/users/3mph4515/following{/other_user}","gists_url":"https://api.github.com/users/3mph4515/gists{/gist_id}","starred_url":"https://api.github.com/users/3mph4515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3mph4515/subscriptions","organizations_url":"https://api.github.com/users/3mph4515/orgs","repos_url":"https://api.github.com/users/3mph4515/repos","events_url":"https://api.github.com/users/3mph4515/events{/privacy}","received_events_url":"https://api.github.com/users/3mph4515/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T22:29:07Z","updated_at":"2016-08-09T22:29:07Z","body":"Have faced with the same issue but with PieChart class. Before starting animation it displays filled piechart for a moment.  \r\nLibrary version : 3.0.0-beta1\r\n"}}
{"actor":{"display_login":"3mph4515"}}