Skip to content

d3 plugin to zoom along multiple axes independently

License

Notifications You must be signed in to change notification settings

mathisonian/d3-multiaxis-zoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cdd3e0a · Apr 29, 2016

History

21 Commits
Jan 8, 2015
Jan 10, 2015
Jan 7, 2015
Jan 7, 2015
Jan 9, 2015
Apr 29, 2016
Jan 9, 2015
Apr 29, 2016

Repository files navigation

d3-multiaxis-zoom

d3 plugin to zoom along multiple axes independently

zooming example

zooming behaves normally until modifier keys are applied.

  • meta + zoom zooms only along the Y axis (⌘ on osx)
  • alt + zoom zooms only along the X axis

Usage

Script Tag:

<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="../path/to/d3-multiaxis-zoom.js"></script>
<script type="text/javascript">
	
	// Apply to plugin
	d3_multiaxis_zoom(d3);

	// now all d3.behavior.zoom instances will be modified with this plugin

</script>

Browserify:

var d3 = require('d3');
require('d3-multiaxis-zoom')(d3); // apply the plugin

License

MIT

About

d3 plugin to zoom along multiple axes independently

Resources

License

Stars

Watchers

Forks

Packages

No packages published