Skip to content

Instantly share code, notes, and snippets.

View samselikoff's full-sized avatar

Sam Selikoff samselikoff

View GitHub Profile
Hello world!
@samselikoff
samselikoff / _.md
Created March 4, 2014 18:56
cambridge with towns
@samselikoff
samselikoff / _.md
Last active August 29, 2015 13:57
pins
@samselikoff
samselikoff / _.md
Created March 6, 2014 16:51
Tributary inlet
@samselikoff
samselikoff / index.html
Last active August 29, 2015 13:57
OpenStreetMap + d3 tiles + brush slider
<html>
<meta charset="utf-8">
<style>
body {
width: 960px;
margin: 0 auto;
}
.map {
width: 100%;
height: 400px;
@samselikoff
samselikoff / GroupedBarChart.js
Last active April 27, 2021 04:57
Sample grouped bar chart made with d3.chart
d3.chart('BaseChart').extend('GroupedBarChart', {
initialize : function() {
var chart = this;
chart.margin = {top: 40, right: 20, bottom: 40, left: 60};
chart.xScale = d3.scale.ordinal().rangeRoundBands([0, chart.width()], 0.1);
chart.x1Scale = d3.scale.ordinal();
chart.yScale = d3.scale.linear().range([chart.height(), 0]);
chart.color = d3.scale.category10();
chart.duration = 500;