{"action":"created","comment":{"url":"https://api.github.com/repos/halfhp/androidplot/pulls/comments/92837077","pull_request_review_id":13360423,"id":92837077,"diff_hunk":"@@ -0,0 +1,162 @@\n+/*\n+ * Copyright 2015 AndroidPlot.com\n+ *\n+ *    Licensed under the Apache License, Version 2.0 (the \"License\");\n+ *    you may not use this file except in compliance with the License.\n+ *    You may obtain a copy of the License at\n+ *\n+ *        http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *    Unless required by applicable law or agreed to in writing, software\n+ *    distributed under the License is distributed on an \"AS IS\" BASIS,\n+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ *    See the License for the specific language governing permissions and\n+ *    limitations under the License.\n+ */\n+\n+package com.androidplot.demos;\n+\n+import android.animation.Animator;\n+import android.animation.ValueAnimator;\n+import android.app.Activity;\n+import android.graphics.Color;\n+import android.os.Bundle;\n+import android.view.animation.AccelerateDecelerateInterpolator;\n+\n+import com.androidplot.xy.BoundaryMode;\n+import com.androidplot.xy.CatmullRomInterpolator;\n+import com.androidplot.xy.LineAndPointFormatter;\n+import com.androidplot.xy.ScalingXYSeries;\n+import com.androidplot.xy.SimpleXYSeries;\n+import com.androidplot.xy.XYGraphWidget;\n+import com.androidplot.xy.XYPlot;\n+import com.androidplot.xy.XYSeries;\n+\n+import java.text.FieldPosition;\n+import java.text.Format;\n+import java.text.ParsePosition;\n+import java.util.Arrays;\n+\n+/**\n+ * Demonstrates animating XYSeries data from a zero value up/down to the actual values set.  Once\n+ * the animation completes, labels for each point are made visible.\n+ *\n+ * IMPORTANT: This example makes use of {@link ValueAnimator} which is only available in\n+ * SDK level 11 and later..\n+ */\n+public class AnimatedXYPlotActivity extends Activity {\n+\n+    private XYPlot plot;\n+\n+    @Override\n+    public void onCreate(Bundle savedInstanceState)\n+    {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.simple_xy_plot_example);\n+\n+        // initialize our XYPlot reference:\n+        plot = (XYPlot) findViewById(R.id.plot);\n+\n+        // create a couple arrays of y-values to plot:\n+        final Number[] domainLabels = {1, 2, 3, 6, 7, 8, 9, 10, 13, 14};\n+        Number[] series1Numbers = {1, 4, 2, 8, 4, 16, 8, 32, 16, 64};\n+        Number[] series2Numbers = {5, 2, 10, 5, 20, 10, 40, 20, 80, 40};\n+\n+        // turn the above arrays into XYSeries':\n+        // (Y_VALS_ONLY means use the element index as the x value)\n+        XYSeries series1 = new SimpleXYSeries(\n+                Arrays.asList(series1Numbers), SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, \"Series1\");\n+        XYSeries series2 = new SimpleXYSeries(\n+                Arrays.asList(series2Numbers), SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, \"Series2\");\n+\n+        // create formatters to use for drawing a series using LineAndPointRenderer\n+        // and configure them from xml:\n+        final LineAndPointFormatter series1Format =\n+                new LineAndPointFormatter(this, R.xml.line_point_formatter);\n+\n+        final LineAndPointFormatter series2Format =\n+                new LineAndPointFormatter(this, R.xml.line_point_formatter);\n+        series2Format.getLinePaint().setColor(Color.RED);\n+\n+//        // add an \"dash\" effect to the series2 line:","path":"demoapp/src/main/java/com/androidplot/demos/AnimatedXYPlotActivity.java","position":81,"original_position":81,"commit_id":"15cb3d8c0ebd891a0d48b696f55f960d98389b69","original_commit_id":"15cb3d8c0ebd891a0d48b696f55f960d98389b69","user":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"body":"delete","created_at":"2016-12-16T16:05:45Z","updated_at":"2016-12-16T16:05:45Z","html_url":"https://github.com/halfhp/androidplot/pull/22#discussion_r92837077","pull_request_url":"https://api.github.com/repos/halfhp/androidplot/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/comments/92837077"},"html":{"href":"https://github.com/halfhp/androidplot/pull/22#discussion_r92837077"},"pull_request":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/halfhp/androidplot/pulls/22","id":98359015,"html_url":"https://github.com/halfhp/androidplot/pull/22","diff_url":"https://github.com/halfhp/androidplot/pull/22.diff","patch_url":"https://github.com/halfhp/androidplot/pull/22.patch","issue_url":"https://api.github.com/repos/halfhp/androidplot/issues/22","number":22,"state":"open","locked":false,"title":"1.4.0 Changes","user":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-16T16:03:12Z","updated_at":"2016-12-16T16:05:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"001408a3cdfd850bf0ec2d9bff63f73c1acd7062","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/halfhp/androidplot/pulls/22/commits","review_comments_url":"https://api.github.com/repos/halfhp/androidplot/pulls/22/comments","review_comment_url":"https://api.github.com/repos/halfhp/androidplot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/halfhp/androidplot/issues/22/comments","statuses_url":"https://api.github.com/repos/halfhp/androidplot/statuses/15cb3d8c0ebd891a0d48b696f55f960d98389b69","head":{"label":"halfhp:1.4.0","ref":"1.4.0","sha":"15cb3d8c0ebd891a0d48b696f55f960d98389b69","user":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"repo":{"id":1424783,"name":"androidplot","full_name":"halfhp/androidplot","owner":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfhp/androidplot","description":"Charts and plots for Android","fork":false,"url":"https://api.github.com/repos/halfhp/androidplot","forks_url":"https://api.github.com/repos/halfhp/androidplot/forks","keys_url":"https://api.github.com/repos/halfhp/androidplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfhp/androidplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfhp/androidplot/teams","hooks_url":"https://api.github.com/repos/halfhp/androidplot/hooks","issue_events_url":"https://api.github.com/repos/halfhp/androidplot/issues/events{/number}","events_url":"https://api.github.com/repos/halfhp/androidplot/events","assignees_url":"https://api.github.com/repos/halfhp/androidplot/assignees{/user}","branches_url":"https://api.github.com/repos/halfhp/androidplot/branches{/branch}","tags_url":"https://api.github.com/repos/halfhp/androidplot/tags","blobs_url":"https://api.github.com/repos/halfhp/androidplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfhp/androidplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfhp/androidplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfhp/androidplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfhp/androidplot/statuses/{sha}","languages_url":"https://api.github.com/repos/halfhp/androidplot/languages","stargazers_url":"https://api.github.com/repos/halfhp/androidplot/stargazers","contributors_url":"https://api.github.com/repos/halfhp/androidplot/contributors","subscribers_url":"https://api.github.com/repos/halfhp/androidplot/subscribers","subscription_url":"https://api.github.com/repos/halfhp/androidplot/subscription","commits_url":"https://api.github.com/repos/halfhp/androidplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfhp/androidplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfhp/androidplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfhp/androidplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/halfhp/androidplot/contents/{+path}","compare_url":"https://api.github.com/repos/halfhp/androidplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfhp/androidplot/merges","archive_url":"https://api.github.com/repos/halfhp/androidplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfhp/androidplot/downloads","issues_url":"https://api.github.com/repos/halfhp/androidplot/issues{/number}","pulls_url":"https://api.github.com/repos/halfhp/androidplot/pulls{/number}","milestones_url":"https://api.github.com/repos/halfhp/androidplot/milestones{/number}","notifications_url":"https://api.github.com/repos/halfhp/androidplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfhp/androidplot/labels{/name}","releases_url":"https://api.github.com/repos/halfhp/androidplot/releases{/id}","deployments_url":"https://api.github.com/repos/halfhp/androidplot/deployments","created_at":"2011-03-01T04:54:12Z","updated_at":"2016-12-16T10:56:32Z","pushed_at":"2016-12-16T16:03:12Z","git_url":"git://github.com/halfhp/androidplot.git","ssh_url":"git@github.com:halfhp/androidplot.git","clone_url":"https://github.com/halfhp/androidplot.git","svn_url":"https://github.com/halfhp/androidplot","homepage":"http://androidplot.com","size":6802,"stargazers_count":67,"watchers_count":67,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":4,"forks":30,"open_issues":4,"watchers":67,"default_branch":"master"}},"base":{"label":"halfhp:master","ref":"master","sha":"c3382353438edd2d036f7f345216d1e7bb4a6746","user":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"repo":{"id":1424783,"name":"androidplot","full_name":"halfhp/androidplot","owner":{"login":"halfhp","id":644062,"avatar_url":"https://avatars.githubusercontent.com/u/644062?v=3","gravatar_id":"","url":"https://api.github.com/users/halfhp","html_url":"https://github.com/halfhp","followers_url":"https://api.github.com/users/halfhp/followers","following_url":"https://api.github.com/users/halfhp/following{/other_user}","gists_url":"https://api.github.com/users/halfhp/gists{/gist_id}","starred_url":"https://api.github.com/users/halfhp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfhp/subscriptions","organizations_url":"https://api.github.com/users/halfhp/orgs","repos_url":"https://api.github.com/users/halfhp/repos","events_url":"https://api.github.com/users/halfhp/events{/privacy}","received_events_url":"https://api.github.com/users/halfhp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfhp/androidplot","description":"Charts and plots for Android","fork":false,"url":"https://api.github.com/repos/halfhp/androidplot","forks_url":"https://api.github.com/repos/halfhp/androidplot/forks","keys_url":"https://api.github.com/repos/halfhp/androidplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfhp/androidplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfhp/androidplot/teams","hooks_url":"https://api.github.com/repos/halfhp/androidplot/hooks","issue_events_url":"https://api.github.com/repos/halfhp/androidplot/issues/events{/number}","events_url":"https://api.github.com/repos/halfhp/androidplot/events","assignees_url":"https://api.github.com/repos/halfhp/androidplot/assignees{/user}","branches_url":"https://api.github.com/repos/halfhp/androidplot/branches{/branch}","tags_url":"https://api.github.com/repos/halfhp/androidplot/tags","blobs_url":"https://api.github.com/repos/halfhp/androidplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfhp/androidplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfhp/androidplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfhp/androidplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfhp/androidplot/statuses/{sha}","languages_url":"https://api.github.com/repos/halfhp/androidplot/languages","stargazers_url":"https://api.github.com/repos/halfhp/androidplot/stargazers","contributors_url":"https://api.github.com/repos/halfhp/androidplot/contributors","subscribers_url":"https://api.github.com/repos/halfhp/androidplot/subscribers","subscription_url":"https://api.github.com/repos/halfhp/androidplot/subscription","commits_url":"https://api.github.com/repos/halfhp/androidplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfhp/androidplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfhp/androidplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfhp/androidplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/halfhp/androidplot/contents/{+path}","compare_url":"https://api.github.com/repos/halfhp/androidplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfhp/androidplot/merges","archive_url":"https://api.github.com/repos/halfhp/androidplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfhp/androidplot/downloads","issues_url":"https://api.github.com/repos/halfhp/androidplot/issues{/number}","pulls_url":"https://api.github.com/repos/halfhp/androidplot/pulls{/number}","milestones_url":"https://api.github.com/repos/halfhp/androidplot/milestones{/number}","notifications_url":"https://api.github.com/repos/halfhp/androidplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfhp/androidplot/labels{/name}","releases_url":"https://api.github.com/repos/halfhp/androidplot/releases{/id}","deployments_url":"https://api.github.com/repos/halfhp/androidplot/deployments","created_at":"2011-03-01T04:54:12Z","updated_at":"2016-12-16T10:56:32Z","pushed_at":"2016-12-16T16:03:12Z","git_url":"git://github.com/halfhp/androidplot.git","ssh_url":"git@github.com:halfhp/androidplot.git","clone_url":"https://github.com/halfhp/androidplot.git","svn_url":"https://github.com/halfhp/androidplot","homepage":"http://androidplot.com","size":6802,"stargazers_count":67,"watchers_count":67,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":4,"forks":30,"open_issues":4,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/22"},"html":{"href":"https://github.com/halfhp/androidplot/pull/22"},"issue":{"href":"https://api.github.com/repos/halfhp/androidplot/issues/22"},"comments":{"href":"https://api.github.com/repos/halfhp/androidplot/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/halfhp/androidplot/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/halfhp/androidplot/statuses/15cb3d8c0ebd891a0d48b696f55f960d98389b69"}}}}
{"actor":{"display_login":"halfhp"}}