Skip to content

Instantly share code, notes, and snippets.

View enjalot's full-sized avatar

Ian Johnson enjalot

View GitHub Profile
@enjalot
enjalot / README.md
Last active December 22, 2015 10:18 — forked from milroc/README.md

Sparkline Directive for Angular with d3.js

The reusable chart pattern makes it easy to make components responsive to changes in data as well as dimension.

Integrating with Angular based on code by @milr0c: Angular.js + d3.js

Miles' talk on reusable charts with MV* Frameworks:Video

Shirley discusses a very similar pattern with Backbone: Video

@enjalot
enjalot / README.md
Last active December 22, 2015 09:58 — forked from milroc/README.md

Sparkline Directive for Angular with d3.js

The reusable chart pattern makes it easy to make components responsive to changes in data as well as dimension.

Integrating with Angular based on code by @milr0c: Angular.js + d3.js

Miles' talk on reusable charts with MV* Frameworks:Video

Shirley discusses a very similar pattern with Backbone: Video

parseInt('04foo');
+'04foo';
+'1.5';
+'1e-4';
+'-.2'
@enjalot
enjalot / README.md
Last active December 14, 2015 13:48 — forked from monsieurBelbo/README.md

The Issue

I'm trying to build a map that can be zoomed using the mouse wheel and panned with drag. For that I'm using d3.behavior.zoom() and it works fine for the map. However, I also need to mark some points in the map (which are included in the same topojson used to draw the map). They get rendered just fine, but I'm having trouble handling the zoom behaviour with these points. If you try to zoom or pan, the points get translated abruptly and even seem to change their path!

Any ideas?

@enjalot
enjalot / _.md
Created January 22, 2013 18:24 — forked from zeffii/_.md
Pimp my Tribe (update2)
@enjalot
enjalot / _.md
Created January 18, 2013 23:50 — forked from poezn/_.md
Latest Tributary Inlets
@enjalot
enjalot / _.md
Last active December 11, 2015 07:49 — forked from erikhazzard/_.md
Tributary Inlet Leaderboard With more stats
@enjalot
enjalot / _.md
Created January 18, 2013 21:57 — forked from zeffii/_.md
Pimp my Tribe
@enjalot
enjalot / _.md
Created January 18, 2013 01:41 — forked from poezn/_.md
Toggle Switch
@enjalot
enjalot / _.md
Last active December 11, 2015 06:19 — forked from zeffii/_.md
Pimp my Tribe