stackedbar/plot-transform.js
/**
     * Axis constructor that returns custom behaviour on d3.svg.axis
     *
     */
Axis constructor that returns custom behaviour on d3.svg.axis
Axis constructor that returns custom behaviour on d3 . svg . axis
function d3TransfAxis() {
        var axis = d3.svg.axis();
        function transAxis(g) {
            g.call(axis).selectAll(".tick text, .tick line").attr(transflip())
            if(d3.select(g.node()).classed("x")) g.selectAll(".domain").attr(transflip());
        }
        axis.tickSize = tickSize.bind(axis);
        d3.rebind.bind(null, transAxis, axis).apply(null, Object.keys(axis))
        return transAxis;
    }
function d3TransfAxis ( ) { var axis = d3 . svg . axis ( ) ; function transAxis ( g ) { g . call ( axis ) . selectAll ( ".tick text, .tick line" ) . attr ( transflip ( ) ) if ( d3 . select ( g . node ( ) ) . classed ( "x" ) ) g . selectAll ( ".domain" ) . attr ( transflip ( ) ) ; } axis . tickSize = tickSize . bind ( axis ) ; d3 . rebind . bind ( null , transAxis , axis ) . apply ( null , Object . keys ( axis ) ) return transAxis ; }
Axis constructor that returns custom behaviour on d3.svg.axis
Axis constructor that returns custom behaviour on d3 . svg . axis