rickshaw
Version:
Rickshaw is a JavaScript toolkit for creating interactive time series graphs, developed at [Shutterstock](http://www.shutterstock.com)
27 lines (18 loc) • 530 B
JavaScript
Rickshaw.namespace('Rickshaw.Graph.Renderer.Line');
Rickshaw.Graph.Renderer.Line = Rickshaw.Class.create( Rickshaw.Graph.Renderer, {
name: 'line',
defaults: function($super) {
return Rickshaw.extend( $super(), {
unstack: true,
fill: false,
stroke: true
} );
},
seriesPathFactory: function() {
var graph = this.graph;
return d3.svg.line()
.x( function(d) { return graph.x(d.x) } )
.y( function(d) { return graph.y(d.y) } )
.interpolate(this.graph.interpolation).tension(this.tension);
}
} );