Skip to content
mbostock edited this page May 28, 2011 · 151 revisions

Everything in D3 is scoped under the d3 namespace.

d3 (core)

Selections

  • d3.select - select an element from the current document.
  • d3.selectAll - select multiple elements from the current document.
  • d3.ns - access or extend known XML namespaces.
  • d3.event - access the current user event for interaction.

Transitions

Working with Arrays

  • d3.ascending - compare two values for sorting.
  • d3.descending - compare two values for sorting.
  • d3.min - find the minimum value in an array.
  • d3.max - find the maximum value in an array.
  • d3.keys - list the keys of an associative array.
  • d3.values - list the values of an associated array.
  • d3.entries - list the key-value entries of an associative array.
  • d3.split - split an array into multiple arrays.
  • d3.merge - merge multiple arrays into one array.
  • d3.range - generate a range of numeric values.
  • d3.nest - group array elements hierarchically.

Loading External Data

  • d3.xhr
  • d3.text
  • d3.json
  • d3.html
  • d3.xml

Number Formatting

  • d3.format

Colors

  • d3.rgb
  • d3.hsl

d3.behavior

d3.chart

d3.csv

d3.geo

d3.geom

d3.layout

d3.scale

d3.svg

d3.time

Clone this wiki locally