xkcd.js
function (nm) {
        el = d3.select(nm).append("svg")
                    .attr("width", config.width + 2 * config.margin)
                    .attr("height", config.height + 2 * config.margin)
                .append("g")
                    .attr("transform", "translate(" + config.margin + ", "
                                                    + config.margin + ")");
        return xkcd;
    }
function (nm) {
        el = d3.select(nm).append("svg")
                    .attr("width", config.width + 2 * config.margin)
                    .attr("height", config.height + 2 * config.margin)
                .append("g")
                    .attr("transform", "translate(" + config.margin + ", "
                                                    + config.margin + ")");
        return xkcd;
    }
function ( nm ) { el = d3 . select ( nm ) . append ( "svg" ) . attr ( "width" , config . width + 2 * config . margin ) . attr ( "height" , config . height + 2 * config . margin ) . append ( "g" ) . attr ( "transform" , "translate(" + config . margin + ", " + config . margin + ")" ) ; return xkcd ; }
The XKCD object itself.
The XKCD object itself .