dmz

d3-multiaxis-zoom

d3 plugin to zoom along multiple axes independently

Showing:

Popularity

Downloads/wk

5

GitHub Stars

15

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

13.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100