Skip to content

Instantly share code, notes, and snippets.

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

This example demonstrates how to add visible and draggable handles to D3’s d3.svg.brush component, rather than that relying on the invisible boundary of the brush extent. The handle sizes here are exaggerated for demonstration purposes!

@first-developer
first-developer / _.md
Created April 20, 2013 14:04
Tributary inlet
@first-developer
first-developer / _.md
Created May 5, 2013 17:07
Learning D3 Brush
@first-developer
first-developer / jquery.live_filter.js
Created May 17, 2013 14:23
Live filter : jQuery helper to filter list item by item selector
!(function($) {
$.fn.live_filter = function (list_selector, opts) {
var default_options = {

The below configuration will pause the tour after tooltip 2 has appeared (index of 1). In the postStepCallback we check to see if the tour has been paused and fire some code.

<script>
  $(window).load(function() {
    $('#joyRideTipContent').joyride({
      pauseAfter : [1],
      postStepCallback : function (index, tip) {
        if ($(this).joyride('paused')) {
 console.log('Hey there, you\'ve paused the tour.');
@first-developer
first-developer / script.js
Created May 29, 2013 05:11
A CodePen by first-developer. Compute window size on resizing - Code use to compute window size when the browser is resizing
var windowResize = function(fun){
var oldresize = window.onresize;
window.onresize = function(e) {
if (typeof oldresize == 'function') oldresize(e);
fun(e);
}
};
var res = function (e) {
@first-developer
first-developer / index.html
Created May 29, 2013 05:26
A CodePen by first-developer. Compute window size on resizing - Code use to compute window size when the browser is resizing
<div class="m"></div>
@first-developer
first-developer / _.md
Created June 1, 2013 15:35
Mailboxes data
@first-developer
first-developer / _.md
Created June 3, 2013 12:27
Mailboxes data