npm install --save d3-compose
npm install --save d3-compose
In the D3 way of functions as objects, composition of functions needs to also inherit the properties of the functions being composed. This is what this small utility aims to acheive, think of it as the combination of two Underscore's functionalities: compose and extend.
For other ways of composing functions with D3 see d3-wrap
git clone https://github.com/au-phiware/d3-compose.git
To truly understand d3-compose read the annotated source code.
more src/compose.js
Perhaps the best way to explain d3-compose is by example.
d3-compose can be used to extend common D3 modules such as d3-axis.