GitHub PullRequestReviewCommentEvent at 2014-01-09 10:55:27
Repository: mf-geoadmin3
Actor: gjn
Payload: {"comment":{"url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/pulls/comments/8752910","id":8752910,"diff_hunk":"@@ -0,0 +1,184 @@\n+(function() {\n+  goog.provide('ga_profile_service');\n+\n+  goog.require('ga_draggable_directive');\n+  goog.require('ga_popup');\n+\n+  var module = angular.module('ga_profile_service', [\n+    'ga_draggable_directive',\n+    'ga_popup',\n+    'pascalprecht.translate'\n+  ]);\n+\n+  module.provider('gaProfileService', function() {\n+\n+    function ProfileChart(options) {\n+      var marginHoriz = options.margin.left + options.margin.right;\n+      var marginVert = options.margin.top + options.margin.bottom;\n+\n+      var width = options.width - marginHoriz;\n+      var height = options.height - marginVert;\n+\n+      var createArea = function(domain, interpolationMethod) {\n+        var x = domain.X;\n+        var y = domain.Y;\n+        var area = d3.svg.area()\n+            .interpolate(interpolationMethod)\n+            .x(function(d) { return x(d.dist); })\n+            .y0(height)\n+            .y1(function(d) { return y(d.alts.DTM25); });\n+        return area;\n+      };\n+\n+      var createAxis = function(domain) {\n+        var xAxis = d3.svg.axis()\n+            .scale(domain.X)\n+            .orient('bottom');\n+        var yAxis = d3.svg.axis()\n+            .scale(domain.Y)\n+            .orient('left');\n+        return {\n+          X: xAxis,\n+          Y: yAxis\n+        };\n+      };\n+\n+      var x = d3.scale.linear().range([0, width]);\n+      var y = d3.scale.linear().range([height, 0]);\n+\n+      var getXYDomains = function(data) {\n+        x.domain(d3.extent(data, function(d) { return d.dist; }));\n+        y.domain([0, d3.max(data, function(d) { return d.alts.DTM25; })]);","path":"src/components/profile/ProfileService.js","position":51,"original_position":51,"commit_id":"f9ab19b8edf3590052d3d948e561008e8872bc2f","original_commit_id":"f9ab19b8edf3590052d3d948e561008e8872bc2f","user":{"login":"gjn","id":2572317,"avatar_url":"https://gravatar.com/avatar/6856d9511ef090dc14eb7d14bcd19ffc?d=https%3A%2F%2Fidenticons.github.com%2Fcdcd0d2cde545207afca78b04c790cc4.png&r=x","gravatar_id":"6856d9511ef090dc14eb7d14bcd19ffc","url":"https://api.github.com/users/gjn","html_url":"https://github.com/gjn","followers_url":"https://api.github.com/users/gjn/followers","following_url":"https://api.github.com/users/gjn/following{/other_user}","gists_url":"https://api.github.com/users/gjn/gists{/gist_id}","starred_url":"https://api.github.com/users/gjn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjn/subscriptions","organizations_url":"https://api.github.com/users/gjn/orgs","repos_url":"https://api.github.com/users/gjn/repos","events_url":"https://api.github.com/users/gjn/events{/privacy}","received_events_url":"https://api.github.com/users/gjn/received_events","type":"User","site_admin":false},"body":"Nesting","created_at":"2014-01-09T10:55:27Z","updated_at":"2014-01-09T10:55:27Z","html_url":"https://github.com/geoadmin/mf-geoadmin3/pull/829#discussion_r8752910","pull_request_url":"https://api.github.com/repos/geoadmin/mf-geoadmin3/pulls/829","_links":{"self":{"href":"https://api.github.com/repos/geoadmin/mf-geoadmin3/pulls/comments/8752910"},"html":{"href":"https://github.com/geoadmin/mf-geoadmin3/pull/829#discussion_r8752910"},"pull_request":{"href":"https://api.github.com/repos/geoadmin/mf-geoadmin3/pulls/829"}}}}