{"action":"created","comment":{"url":"https://api.github.com/repos/sammcgrail/mydga/pulls/comments/35363821","id":35363821,"diff_hunk":"@@ -0,0 +1,64 @@\n+if ($(\"#sample_level_chart\").length > 0) {\n+  var sample_level_chart = c3.generate({\n+      bindto: document.getElementById('sample_level_chart'),\n+      data: {\n+          columns: [\n+              ['TCG', ]\n+          ],\n+          type: 'gauge',\n+          onclick: function (d, i) { console.log(\"onclick\", d, i); },\n+          onmouseover: function (d, i) { console.log(\"onmouseover\", d, i); },\n+          onmouseout: function (d, i) { console.log(\"onmouseout\", d, i); }\n+      },\n+      gauge: {\n+         label: {\n+             format: function(value, ratio) {\n+                 return value;\n+             },\n+             show: true // to turn off the min/max labels.\n+         },\n+     min: 0, // 0 is default, //can handle negative min e.g. vacuum / voltage / current flow / rate of change\n+     max: 4630, // 100 is default\n+     units: 'Total Combustible Gas Level',\n+     width: 39 // for adjusting arc thickness\n+      },\n+      color: {\n+          pattern: [ '#60B044','#F6C600', '#F97600',  '#FF0000',], // the three color levels for the percentage values.\n+          threshold: {\n+  //            unit: 'value', // percentage is default\n+  //            max: 200, // 100 is default\n+              values: [720, 1920, 4630]\n+          }\n+      },\n+      size: {\n+          height: 180\n+      }\n+  });\n+  setTimeout(function () {\n+      sample_level_chart.load({\n+          columns: [['TCG', gon.hydrogen]]\n+      });\n+  }, 1000);\n+  setTimeout(function () {\n+      sample_level_chart.load({\n+          columns: [['TCG', 730]]\n+      });\n+  }, 2000);\n+  setTimeout(function () {\n+      sample_level_chart.load({\n+          columns: [['TCG', 1930]]\n+      });\n+  }, 3000);\n+  setTimeout(function () {\n+      sample_level_chart.load({","path":"app/assets/javascripts/sample_level_chart.js","position":53,"original_position":53,"commit_id":"60b741ab8f076ed35caa3a2e93bca84f5226cf18","original_commit_id":"60b741ab8f076ed35caa3a2e93bca84f5226cf18","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'sample_level_chart' is not in camel case.","created_at":"2015-07-23T19:53:36Z","updated_at":"2015-07-23T19:53:36Z","html_url":"https://github.com/sammcgrail/mydga/pull/11#discussion_r35363821","pull_request_url":"https://api.github.com/repos/sammcgrail/mydga/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/comments/35363821"},"html":{"href":"https://github.com/sammcgrail/mydga/pull/11#discussion_r35363821"},"pull_request":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/sammcgrail/mydga/pulls/11","id":40518653,"html_url":"https://github.com/sammcgrail/mydga/pull/11","diff_url":"https://github.com/sammcgrail/mydga/pull/11.diff","patch_url":"https://github.com/sammcgrail/mydga/pull/11.patch","issue_url":"https://api.github.com/repos/sammcgrail/mydga/issues/11","number":11,"state":"open","locked":false,"title":"chartkick init","user":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T00:10:36Z","updated_at":"2015-07-23T19:53:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05bae79e7b08d022050588cbe9c96362743a5949","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sammcgrail/mydga/pulls/11/commits","review_comments_url":"https://api.github.com/repos/sammcgrail/mydga/pulls/11/comments","review_comment_url":"https://api.github.com/repos/sammcgrail/mydga/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sammcgrail/mydga/issues/11/comments","statuses_url":"https://api.github.com/repos/sammcgrail/mydga/statuses/60b741ab8f076ed35caa3a2e93bca84f5226cf18","head":{"label":"sammcgrail:chartkik","ref":"chartkik","sha":"60b741ab8f076ed35caa3a2e93bca84f5226cf18","user":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"repo":{"id":39031174,"name":"mydga","full_name":"sammcgrail/mydga","owner":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sammcgrail/mydga","description":"DGA Analysis for Transformer Maintenance Engineers","fork":false,"url":"https://api.github.com/repos/sammcgrail/mydga","forks_url":"https://api.github.com/repos/sammcgrail/mydga/forks","keys_url":"https://api.github.com/repos/sammcgrail/mydga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sammcgrail/mydga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sammcgrail/mydga/teams","hooks_url":"https://api.github.com/repos/sammcgrail/mydga/hooks","issue_events_url":"https://api.github.com/repos/sammcgrail/mydga/issues/events{/number}","events_url":"https://api.github.com/repos/sammcgrail/mydga/events","assignees_url":"https://api.github.com/repos/sammcgrail/mydga/assignees{/user}","branches_url":"https://api.github.com/repos/sammcgrail/mydga/branches{/branch}","tags_url":"https://api.github.com/repos/sammcgrail/mydga/tags","blobs_url":"https://api.github.com/repos/sammcgrail/mydga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sammcgrail/mydga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sammcgrail/mydga/git/refs{/sha}","trees_url":"https://api.github.com/repos/sammcgrail/mydga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sammcgrail/mydga/statuses/{sha}","languages_url":"https://api.github.com/repos/sammcgrail/mydga/languages","stargazers_url":"https://api.github.com/repos/sammcgrail/mydga/stargazers","contributors_url":"https://api.github.com/repos/sammcgrail/mydga/contributors","subscribers_url":"https://api.github.com/repos/sammcgrail/mydga/subscribers","subscription_url":"https://api.github.com/repos/sammcgrail/mydga/subscription","commits_url":"https://api.github.com/repos/sammcgrail/mydga/commits{/sha}","git_commits_url":"https://api.github.com/repos/sammcgrail/mydga/git/commits{/sha}","comments_url":"https://api.github.com/repos/sammcgrail/mydga/comments{/number}","issue_comment_url":"https://api.github.com/repos/sammcgrail/mydga/issues/comments{/number}","contents_url":"https://api.github.com/repos/sammcgrail/mydga/contents/{+path}","compare_url":"https://api.github.com/repos/sammcgrail/mydga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sammcgrail/mydga/merges","archive_url":"https://api.github.com/repos/sammcgrail/mydga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sammcgrail/mydga/downloads","issues_url":"https://api.github.com/repos/sammcgrail/mydga/issues{/number}","pulls_url":"https://api.github.com/repos/sammcgrail/mydga/pulls{/number}","milestones_url":"https://api.github.com/repos/sammcgrail/mydga/milestones{/number}","notifications_url":"https://api.github.com/repos/sammcgrail/mydga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sammcgrail/mydga/labels{/name}","releases_url":"https://api.github.com/repos/sammcgrail/mydga/releases{/id}","created_at":"2015-07-13T18:55:23Z","updated_at":"2015-07-22T00:22:50Z","pushed_at":"2015-07-23T19:53:18Z","git_url":"git://github.com/sammcgrail/mydga.git","ssh_url":"git@github.com:sammcgrail/mydga.git","clone_url":"https://github.com/sammcgrail/mydga.git","svn_url":"https://github.com/sammcgrail/mydga","homepage":"http://mydga.herokuapp.com","size":752,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sammcgrail:master","ref":"master","sha":"cce9d79df9a9d1e520abffe28163a9a918e53030","user":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"repo":{"id":39031174,"name":"mydga","full_name":"sammcgrail/mydga","owner":{"login":"sammcgrail","id":6109568,"avatar_url":"https://avatars.githubusercontent.com/u/6109568?v=3","gravatar_id":"","url":"https://api.github.com/users/sammcgrail","html_url":"https://github.com/sammcgrail","followers_url":"https://api.github.com/users/sammcgrail/followers","following_url":"https://api.github.com/users/sammcgrail/following{/other_user}","gists_url":"https://api.github.com/users/sammcgrail/gists{/gist_id}","starred_url":"https://api.github.com/users/sammcgrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammcgrail/subscriptions","organizations_url":"https://api.github.com/users/sammcgrail/orgs","repos_url":"https://api.github.com/users/sammcgrail/repos","events_url":"https://api.github.com/users/sammcgrail/events{/privacy}","received_events_url":"https://api.github.com/users/sammcgrail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sammcgrail/mydga","description":"DGA Analysis for Transformer Maintenance Engineers","fork":false,"url":"https://api.github.com/repos/sammcgrail/mydga","forks_url":"https://api.github.com/repos/sammcgrail/mydga/forks","keys_url":"https://api.github.com/repos/sammcgrail/mydga/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sammcgrail/mydga/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sammcgrail/mydga/teams","hooks_url":"https://api.github.com/repos/sammcgrail/mydga/hooks","issue_events_url":"https://api.github.com/repos/sammcgrail/mydga/issues/events{/number}","events_url":"https://api.github.com/repos/sammcgrail/mydga/events","assignees_url":"https://api.github.com/repos/sammcgrail/mydga/assignees{/user}","branches_url":"https://api.github.com/repos/sammcgrail/mydga/branches{/branch}","tags_url":"https://api.github.com/repos/sammcgrail/mydga/tags","blobs_url":"https://api.github.com/repos/sammcgrail/mydga/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sammcgrail/mydga/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sammcgrail/mydga/git/refs{/sha}","trees_url":"https://api.github.com/repos/sammcgrail/mydga/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sammcgrail/mydga/statuses/{sha}","languages_url":"https://api.github.com/repos/sammcgrail/mydga/languages","stargazers_url":"https://api.github.com/repos/sammcgrail/mydga/stargazers","contributors_url":"https://api.github.com/repos/sammcgrail/mydga/contributors","subscribers_url":"https://api.github.com/repos/sammcgrail/mydga/subscribers","subscription_url":"https://api.github.com/repos/sammcgrail/mydga/subscription","commits_url":"https://api.github.com/repos/sammcgrail/mydga/commits{/sha}","git_commits_url":"https://api.github.com/repos/sammcgrail/mydga/git/commits{/sha}","comments_url":"https://api.github.com/repos/sammcgrail/mydga/comments{/number}","issue_comment_url":"https://api.github.com/repos/sammcgrail/mydga/issues/comments{/number}","contents_url":"https://api.github.com/repos/sammcgrail/mydga/contents/{+path}","compare_url":"https://api.github.com/repos/sammcgrail/mydga/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sammcgrail/mydga/merges","archive_url":"https://api.github.com/repos/sammcgrail/mydga/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sammcgrail/mydga/downloads","issues_url":"https://api.github.com/repos/sammcgrail/mydga/issues{/number}","pulls_url":"https://api.github.com/repos/sammcgrail/mydga/pulls{/number}","milestones_url":"https://api.github.com/repos/sammcgrail/mydga/milestones{/number}","notifications_url":"https://api.github.com/repos/sammcgrail/mydga/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sammcgrail/mydga/labels{/name}","releases_url":"https://api.github.com/repos/sammcgrail/mydga/releases{/id}","created_at":"2015-07-13T18:55:23Z","updated_at":"2015-07-22T00:22:50Z","pushed_at":"2015-07-23T19:53:18Z","git_url":"git://github.com/sammcgrail/mydga.git","ssh_url":"git@github.com:sammcgrail/mydga.git","clone_url":"https://github.com/sammcgrail/mydga.git","svn_url":"https://github.com/sammcgrail/mydga","homepage":"http://mydga.herokuapp.com","size":752,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/11"},"html":{"href":"https://github.com/sammcgrail/mydga/pull/11"},"issue":{"href":"https://api.github.com/repos/sammcgrail/mydga/issues/11"},"comments":{"href":"https://api.github.com/repos/sammcgrail/mydga/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sammcgrail/mydga/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/sammcgrail/mydga/statuses/60b741ab8f076ed35caa3a2e93bca84f5226cf18"}}}}