Commit e43d4bed authored by Mike Bostock's avatar Mike Bostock
Browse files

Add d3-axis.

parent 9a59b4fd
......@@ -13,6 +13,7 @@ If you use NPM, `npm install d3@4.0.0-alpha.3`. Otherwise, download the [latest
## API Reference
* [Arrays](#arrays) ([Statistics](#statistics), [Histograms](#histograms), [Search](#search), [Transformations](#transformations))
* [Axes](#axes)
* [Collections](#collections) ([Objects](#objects), [Maps](#maps), [Sets](#sets), [Nests](#nests))
* [Colors](#colors)
* [Delimiter-Separated Values](#delimiter-separated-values)
......@@ -91,6 +92,27 @@ Methods for transforming arrays and for generating new arrays.
* [d3.transpose](https://github.com/d3/d3-array#transpose) - transpose an array of arrays.
* [d3.zip](https://github.com/d3/d3-array#zip) - transpose a variable number of arrays.
## [Axes](https://github.com/d3/d3-axis)
Human-readable reference marks for scales.
* [d3.axis](https://github.com/d3/d3-axis#axis) - create a new axis generator.
* [*axis*](https://github.com/d3/d3-axis#_axis) - generate an axis for the given selection.
* [*axis*.scale](https://github.com/d3/d3-axis#axis_scale) - set the scale.
* [*axis*.orient](https://github.com/d3/d3-axis#axis_orient) - set the axis orientation.
* [*axis*.ticks](https://github.com/d3/d3-axis#axis_ticks) - customize how ticks are generated and formatted.
* [*axis*.tickArguments](https://github.com/d3/d3-axis#axis_tickArguments) - customize how ticks are generated and formatted.
* [*axis*.tickValues](https://github.com/d3/d3-axis#axis_tickValues) - set the tick values explicitly.
* [*axis*.tickFormat](https://github.com/d3/d3-axis#axis_tickFormat) - set the tick format explicitly.
* [*axis*.tickSize](https://github.com/d3/d3-axis#axis_tickSize) - set the size of the ticks.
* [*axis*.tickSizeInner](https://github.com/d3/d3-axis#axis_tickSizeInner) - set the size of inner ticks.
* [*axis*.tickSizeOuter](https://github.com/d3/d3-axis#axis_tickSizeOuter) - set the size of outer (extent) ticks.
* [*axis*.tickPadding](https://github.com/d3/d3-axis#axis_tickPadding) - set the padding between ticks and labels.
* [d3.axisOrientTop](https://github.com/d3/d3-axis#axisOrientTop) - orient the axis along the chart top.
* [d3.axisOrientRight](https://github.com/d3/d3-axis#axisOrientRight) - orient the axis along the chart right.
* [d3.axisOrientBottom](https://github.com/d3/d3-axis#axisOrientBottom) - orient the axis along the chart bottom.
* [d3.axisOrientLeft](https://github.com/d3/d3-axis#axisOrientLeft) - orient the axis along the chart left.
## [Collections](https://github.com/d3/d3-collection)
Handy data structures for elements keyed by string.
......
......@@ -357,3 +357,11 @@ export {
touches,
event
} from "d3-selection";
export {
axis,
axisOrientTop,
axisOrientRight,
axisOrientBottom,
axisOrientLeft
} from "d3-axis";
......@@ -36,6 +36,7 @@
},
"dependencies": {
"d3-array": "0.7.0",
"d3-axis": "0.0.1",
"d3-collection": "0.1.0",
"d3-color": "0.3.3",
"d3-dispatch": "0.2.5",
......@@ -47,7 +48,7 @@
"d3-random": "0.2.0",
"d3-request": "0.3.0",
"d3-scale": "0.5.0",
"d3-selection": "0.5.0",
"d3-selection": "0.5.1",
"d3-shape": "0.4.0",
"d3-time": "0.2.0",
"d3-time-format": "0.3.0",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment