[ Launch: Probo metrics viz ] b3aa98f63f275d735ceee74ec5ddf7e8 by tortillaj
-
-
Save tortillaj/b3aa98f63f275d735ceee74ec5ddf7e8 to your computer and use it in GitHub Desktop.
Probo metrics viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"description":"Probo metrics viz","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"metrics.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true,"thumbnail":"http://i.imgur.com/TbszGY9.png"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var metrics = tributary.metrics.organization; | |
var margin = {top: 350, right: 480, bottom: 350, left: 480}; | |
var radius = Math.min(margin.top, margin.right, margin.bottom, margin.left) - 10; | |
var hue = d3.scale.category10(); | |
var luminance = d3.scale.sqrt() | |
.domain([0, 1e6]) | |
.clamp(true) | |
.range([90, 20]); | |
var svg = d3.select("body").append("svg") | |
.attr("width", margin.left + margin.right) | |
.attr("height", margin.top + margin.bottom) | |
.append("g") | |
.attr("transform", "translate(" + margin.left + "," + margin.top + ")"); | |
var partition = d3.layout.partition() | |
.sort(function(a, b) { return d3.ascending(a.name, b.name); }) | |
.size([2 * Math.PI, radius]); | |
var arc = d3.svg.arc() | |
.startAngle(function(d) { return d.x; }) | |
.endAngle(function(d) { return d.x + d.dx ; }) | |
.padAngle(0.01) | |
.padRadius(radius / 3) | |
.innerRadius(function(d) { return radius / 3 * d.depth; }) | |
.outerRadius(function(d) { return radius / 3 * (d.depth + 1) - 1; }); | |
partition | |
.value(function(d) { return d.size; }) | |
.nodes(metrics) | |
.forEach(function(d) { | |
console.log(d); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"organization": {"createdAt":{"$reql_type$":"TIME","epoch_time":1458580320.705,"timezone":"+00:00"},"id":"a9feb410-66f7-4e7e-b47b-98f2200034c8","metrics":{"builds":{"count":13,"diskSpace":{"realBytes":1237394670,"realBytesAvg":95184205.38461539}}},"name":"GH tortillaj","projects":[{"builds":[],"createdAt":{"$reql_type$":"TIME","epoch_time":1459102918.986,"timezone":"+00:00"},"id":"6643728c-9174-498b-9e45-e3bddd22f39b","metrics":{"builds":{"count":0,"diskSpace":{"realBytes":0,"realBytesAvg":0},"duration":{"milliseconds":0,"millisecondsAvg":0}}},"name":"tortillaj/AngularJS-D3JS-Dashboard"},{"builds":[],"createdAt":{"$reql_type$":"TIME","epoch_time":1459102918.091,"timezone":"+00:00"},"id":"f86ce600-d12d-4f52-814c-ec4815a20b34","metrics":{"builds":{"count":0,"diskSpace":{"realBytes":0,"realBytesAvg":0},"duration":{"milliseconds":0,"millisecondsAvg":0}}},"name":"tortillaj/awesome-drupal-project"},{"builds":[],"createdAt":{"$reql_type$":"TIME","epoch_time":1459102919.667,"timezone":"+00:00"},"id":"44ba4b8a-efda-42fa-9d5b-76b1479863f8","metrics":{"builds":{"count":0,"diskSpace":{"realBytes":0,"realBytesAvg":0},"duration":{"milliseconds":0,"millisecondsAvg":0}}},"name":"tortillaj/Angular-Music"},{"builds":[{"createdAt":{"$reql_type$":"TIME","epoch_time":1458584337.307,"timezone":"+00:00"},"diskSpace":{"realBytes":96308323,"virtualBytes":2359080221},"id":"09ee6eb3-810a-4ba9-b34f-f81cd7d8c57e"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460405206.731,"timezone":"+00:00"},"diskSpace":{"realBytes":94863863,"virtualBytes":2357635761},"id":"6b84a032-e21b-439e-9682-2b4169d67dc3"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460659463.055,"timezone":"+00:00"},"diskSpace":{"realBytes":94864741,"virtualBytes":2357636639},"id":"8345c81e-b38f-4372-9733-ab270413d94c"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460665113.336,"timezone":"+00:00"},"diskSpace":{"realBytes":94865666,"virtualBytes":2357637564},"id":"b0408619-dc39-4438-a832-ac6919344cb9"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460651281.767,"timezone":"+00:00"},"diskSpace":{"realBytes":94864742,"virtualBytes":2357636640},"id":"8b67072d-4c74-4667-8e57-c3446cfe78bc"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460405206.752,"timezone":"+00:00"},"diskSpace":{"realBytes":94863864,"virtualBytes":2357635762},"id":"228192c2-dd67-47b2-a57d-1afc4226f456"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460665053.519,"timezone":"+00:00"},"diskSpace":{"realBytes":96487093,"virtualBytes":2359258991},"id":"f6911d6f-00b3-4e36-a2e1-ed1c0a958595"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460651227.615,"timezone":"+00:00"},"diskSpace":{"realBytes":94864742,"virtualBytes":2357636640},"id":"21672956-45d2-4c67-ba65-36f82faacc11"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460664924.392,"timezone":"+00:00"},"diskSpace":{"realBytes":94864782,"virtualBytes":2357636680},"id":"3152f5c4-cf4c-4d15-bdb2-f249585503ac"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1460577536.369,"timezone":"+00:00"},"diskSpace":{"realBytes":94864739,"virtualBytes":2357636637},"id":"7414be67-f81f-4906-8a1f-bd77c09337fb"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1458584337.211,"timezone":"+00:00"},"diskSpace":{"realBytes":96308323,"virtualBytes":2359080221},"id":"97534418-1250-42ad-a0af-9275389d1bee"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1458584317.487,"timezone":"+00:00"},"diskSpace":{"realBytes":94686896,"virtualBytes":2357458794},"id":"dd71b382-9b04-4669-abcd-295a6241459d"},{"createdAt":{"$reql_type$":"TIME","epoch_time":1458584317.377,"timezone":"+00:00"},"diskSpace":{"realBytes":94686896,"virtualBytes":2357458794},"id":"22b09301-2b25-4f83-bbcb-3e908655a39e"}],"createdAt":{"$reql_type$":"TIME","epoch_time":1458584110.165,"timezone":"+00:00"},"id":"b7a50023-d42a-4969-8832-fafae6ec4d70","metrics":{"builds":{"count":13,"diskSpace":{"realBytes":1237394670,"realBytesAvg":95184205.38461539},"duration":{"milliseconds":3421840,"millisecondsAvg":263218.46153846156}}},"name":"tortillaj/probo.ci"}]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment