in riff-raff/public/javascripts/rickshaw.js [1327:1362]
this.render = function() {
if (this.graph.width !== this._renderWidth) this.setSize({ auto: true });
var axis = d3.svg.axis().scale(this.graph.x).orient(this.orientation);
axis.tickFormat( args.tickFormat || function(x) { return x } );
var berth = Math.floor(this.width * berthRate / 2) || 0;
var transform;
if (this.orientation == 'top') {
var yOffset = this.height || this.graph.height;
transform = 'translate(' + berth + ',' + yOffset + ')';
} else {
transform = 'translate(' + berth + ', 0)';
}
if (this.element) {
this.vis.selectAll('*').remove();
}
this.vis
.append("svg:g")
.attr("class", ["x_ticks_d3", this.ticksTreatment].join(" "))
.attr("transform", transform)
.call(axis.ticks(this.ticks).tickSubdivide(0).tickSize(this.tickSize));
var gridSize = (this.orientation == 'bottom' ? 1 : -1) * this.graph.height;
this.graph.vis
.append("svg:g")
.attr("class", "x_grid_d3")
.call(axis.ticks(this.ticks).tickSubdivide(0).tickSize(gridSize));
this._renderHeight = this.graph.height;
};