Skip to content

Instantly share code, notes, and snippets.

View oller's full-sized avatar
🚲

David Ollerhead oller

🚲
View GitHub Profile
@oller
oller / README.md
Last active August 10, 2017 13:45 — forked from kerryrodden/README.md
Zoomable sunburst with updating data

I combined Mike Bostock's Zoomable Sunburst and Sunburst Partition examples, so that I could have both zooming and updating the underlying data (between count and size, in this case). A simple combination of the examples does not work; you have to edit the arcTween function used for updating the data, so that when it redraws the partition layout, it takes account of the current zoom level by adjusting the domain of the x scale.

Click on any arc to zoom in, and click on the center circle to zoom out. Use the Size/Count radio buttons to update the data.

@oller
oller / README.md
Last active February 1, 2017 11:57 — forked from jefffriesen/README.md
Chrome SVG Performance Regression

An example of the Chrome performance regression handling complex SVGs

Steps to recreate

@oller
oller / index.html
Created January 22, 2016 13:54 — forked from d3noob/.block
World Map with zoom and pan
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke: white;
stroke-width: 0.25px;
fill: grey;
}
</style>
<body>
%btn--social {
border-width: 1px;
border-style: solid;
color: #FFFFFF;
&:hover {
color: #FFFFFF;
}
.socicon {
position: relative;
top: 1px;