Package Exports
- d3-boxplot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d3-boxplot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
d3-boxplot
d3js plugin for box-and-whisker plot.
Installing
If you use NPM, npm install d3-boxplot. Otherwise, download the latest release.
Usage
Visit this page to see examples.
API Reference
# d3.boxplot()
Constructs a new box plot generator with the default settings.
# d3.boxplotStats(data)
Calculates descriptive statistics such as five-number summeries, IQR,
and inner/outer fences. data is an array containing numerical values.
# boxplot.vertical([vertical])
If vertical is specified, sets the vertical mode. If vertical is not specified,
returns the current vertical mode. The default value is false.
# boxplot.scale([scale])
If scale is specified, sets the scale. If scale is not specified,
returns the current scale. The default value is d3.scaleLinear() instance with
default values.
# boxplot.bandwidth([bandwidth])
If bandwidth is specified, sets the bandwidth of the plot. Bandwidth is a pixel value specifying
a thickness of the plot. If bandwidth is not specified, returns the current bandwidth.
The default value is 20.
# boxplot.jitter([jitter])
If jitter is specified, sets the jittering mode. If jitter is not specified,
returns the current jittering mode. The default value is true.