JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q69532F
  • License BSD-3-Clause

d3js plugin for box-and-whisker plot

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.

d3-boxplot

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, [accessor])

Calculates descriptive statistics such as five-number summeries, IQR, and inner/outer fences of given sorted array data. If the type of elements in data is not a number, you should provide an accessor function as the second argument and the array should be sorted according to the accessor.

# 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.showInnerDots([flag])

If flag is specified, sets the option. Set it true to show all data dots, or false to show only outliers (and far-outs).Bandwidthis a pixel value specifying If flag is not specified, returns the current value. The default value is true.

# 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.