A simple utility to make working with d3 scales easier.
npm install d3-Mapping
Designed to be used node style:
var Mapping = require("d3-mapping")
Initialize a new mapping with a scale and an acessor function
x = new Mapping(xScale, xAccessor)
x
has convenience methods for a number of common tasks.
Check out some example usage, and read te docs!