The d3by5-axis is part of the d3by5 graph tools, this specific package will configure [d3 svg axis components] (https://github.com/d3/d3/wiki/svg-axes) to the visualisations created by a d3by5 graph
This is as for now a company internal project, see C3 or NVD3 for D3 fully functional chart libraries.
- d3
- All methods are getters/setters. Called without arguments they return the current option value. Called with arguments sets option value and returns axis.
x.axis = d3by5Axis().show(opt.xAxis).pos(opt.xPos).scale(x.scale).align(opt.xAlign).ticks(opt.xTicks);
Method / option | Argument(s) | Default Value | Description |
---|---|---|---|
.show() | bool | true | If the aisi should show or not |
.pos() | string | Not implemented | |
.scale() | d3 scale | See d3 reference | |
.align() | string | top, bottom, left or right. Se d3 ref. | |
.ticks() | array | Count and format of ticks | |
x.axis = d3by5Axis().show(true).pos(bottom).scale(x.scale).align(bottom).ticks([10]);