Skip to content

Instantly share code, notes, and snippets.

@WeikerWT
Last active June 26, 2018 21:16
Show Gist options
  • Save WeikerWT/90c67e94c32d994fa73fd42c0efaca3f to your computer and use it in GitHub Desktop.
Save WeikerWT/90c67e94c32d994fa73fd42c0efaca3f to your computer and use it in GitHub Desktop.
Pipeline Q1 2018
license: mit
{
"name": "Pipeline",
"children": [
{
"name": "Microsoft",
"children": [
{
"name": "Kingfisher",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 1},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Cummins",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Wendy's",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Reliance Industries Limited (RIL)",
"children": [
{"name": "Qualified Lead", "size": 0},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "TMobile",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "McKinsey",
"children": [
{"name": "Qualified Lead", "size": 0},
{"name": "Close - LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "AutoNation",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Fidelity",
"children": [
{"name": "Qualified Lead", "size": 0},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "FedEx",
"children": [
{"name": "Qualified Lead", "size": 0},
{"name": "Close - LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Johnson & Johnson",
"children": [
{"name": "Qualified Lead", "size": 0},
{"name": "Close - LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Carolinas Health Care",
"children": [
{"name": "Qualified Lead", "size": 1},
{"name": "LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Parkview Health",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Putnam",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Freddie Mac",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Becton Dickinson",
"children": [
{"name": "Qualified Lead", "size": 0},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Tenneco",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Cintas",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "United Airlines",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Energy Transfer",
"children": [
{"name": "Qualified Lead", "size": 0},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 1},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Economical Insurance",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 1},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Kizan",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Workplace",
"children": [
{
"name": "Robert Walters",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 1},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Cognizant",
"children": [
{"name": "Qualified Lead", "size": 1},
{"name": "LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Northwell",
"children": [
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Coca-Cola (Icecek)",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Origin Energy",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Northwell",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "AstraZeneca",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "GEMS",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Amadeus",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Hyperion",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Campbell Soup",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Oxfam",
"children": [
{"name": "Qualified Lead", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
},
{
"name": "Sonata Software",
"children": [
{"name": "Qualified Lead", "size": 1},
{"name": "LOST", "size": 1},
{
"name": "Qualified Lead",
"children": [
{"name": "Opportunity Created", "size": 0},
{
"name": "Opportunity Created",
"children": [
{"name": "Solution Proposed", "size": 0},
{
"name": "Solution Proposed",
"children": [
{"name": "POC", "size": 0},
{
"name": "POC",
"children": [
{"name": "Legal/IT", "size": 0},
{
"name": "Legal/IT",
"children": [
{"name": "Closed - Won", "size": 0}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke: #ffffff;
}
</style>
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<script>
var width = 960,
height = 700,
radius = (Math.min(width, height) / 2) - 10;
var formatNumber = d3.format(",d");
var x = d3.scale.linear()
.range([0, 2 * Math.PI]);
var y = d3.scale.sqrt()
.range([0, radius]);
var color = d3.scale.category20c();
var partition = d3.layout.partition()
.value(function(d) { return d.size; });
var arc = d3.svg.arc()
.startAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x))); })
.endAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x + d.dx))); })
.innerRadius(function(d) { return Math.max(0, y(d.y)); })
.outerRadius(function(d) { return Math.max(0, y(d.y + d.dy)); });
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height)
.append("g")
.attr("transform", "translate(" + width / 2 + "," + (height / 2) + ")");
d3.json("flare.json", function(error, root) {
if (error) throw error;
svg.selectAll("path")
.data(partition.nodes(root))
.enter().append("path")
.attr("d", arc)
.style("fill", function(d) { return color((d.children ? d : d.parent).name); })
.on("click", click)
.append("title")
.text(function(d) { return d.name + "\n" + formatNumber(d.value); });
});
function click(d) {
svg.transition()
.duration(750)
.tween("scale", function() {
var xd = d3.interpolate(x.domain(), [d.x, d.x + d.dx]),
yd = d3.interpolate(y.domain(), [d.y, 1]),
yr = d3.interpolate(y.range(), [d.y ? 20 : 0, radius]);
return function(t) { x.domain(xd(t)); y.domain(yd(t)).range(yr(t)); };
})
.selectAll("path")
.attrTween("d", function(d) { return function() { return arc(d); }; });
}
d3.select(self.frameElement).style("height", height + "px");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment