Skip to content

Instantly share code, notes, and snippets.

Daniele Palumbo danielepalumbo89

Block or report user

Report or block danielepalumbo89

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bar_chart.js
var margin = {top: 20, right: 20, bottom: 170, left: 40},
width = 636 - margin.left - margin.right,
height = 380 - margin.top - margin.bottom; //PW Dimensions, delete margin bottom for better viz w/long x labels
var x = d3.scale.ordinal()
.rangeRoundBands([0, width], .1);
var y = d3.scale.linear()
.range([height, 0]);
View MapDashboard.js
var width = 960,
height = 1160;
var formatNumber = d3.format(",.0f");
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("uk.json", function(error, uk) {
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
/* CSS goes here. */
body {
font: 12px sans-serif;
}
.axis path,
.axis line {
You can’t perform that action at this time.