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!
[ Launch: Tributary inlet ] 5426094 by first-developer
[ Launch: Tributary inlet ] 5521420 by first-developer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(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.');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var windowResize = function(fun){ | |
var oldresize = window.onresize; | |
window.onresize = function(e) { | |
if (typeof oldresize == 'function') oldresize(e); | |
fun(e); | |
} | |
}; | |
var res = function (e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="m"></div> |
[ Launch: Tributary inlet ] 5690774 by first-developer
[ Launch: Mailboxes data ] 5697782 by first-developer[ Launch: Tributary inlet ] 5690774 by first-developer