W3C
school
文档首页
HTML
CSS
Javascript
Python
jQuery
NodeJS
PHP
Java
MySQL
Express
More »
开关
D3.js 3 官方文档
SVG Shapes
arc()
arc.centroid()
arc.cornerRadius()
arc.endAngle()
arc.innerRadius()
arc.outerRadius()
arc.padAngle()
arc.padRadius()
arc.startAngle()
area()
area()
area.angle()
area.defined()
area.endAngle()
area.innerRadius()
area.interpolate()
area.outerRadius()
area.radius()
area.startAngle()
area.tension()
area.x()
area.x0()
area.x1()
area.y()
area.y0()
area.y1()
chord()
chord.endAngle()
chord.radius()
chord.source()
chord.startAngle()
chord.target()
d3.svg.arc()
d3.svg.area()
d3.svg.area.radial()
d3.svg.chord()
d3.svg.diagonal()
d3.svg.diagonal.radial()
d3.svg.line()
d3.svg.line.radial()
d3.svg.symbol()
d3.svg.symbolTypes
diagonal()
diagonal()
diagonal.projection()
diagonal.source()
diagonal.target()
line()
line()
line.angle()
line.defined()
line.defined()
line.interpolate()
line.interpolate()
line.radius()
line.tension()
line.tension()
line.x()
line.y()
SVG Shapes
svg:circle
svg:ellipse
svg:line
svg:path
svg:polygon
svg:polyline
svg:rect
svg:text
symbol()
symbol.size()
symbol.type()
Arrays
Arrays
d3.ascending()
d3.bisect()
d3.bisectLeft()
d3.bisector()
d3.descending()
d3.deviation()
d3.entries()
d3.extent()
d3.keys()
d3.map()
d3.max()
d3.mean()
d3.median()
d3.merge()
d3.min()
d3.nest()
d3.pairs()
d3.permute()
d3.quantile()
d3.range()
d3.set()
d3.shuffle()
d3.sum()
d3.transpose()
d3.values()
d3.variance()
d3.zip()
map.empty()
map.entries()
map.forEach()
map.get()
map.has()
map.keys()
map.remove()
map.set()
map.size()
map.values()
nest.entries()
nest.key()
nest.map()
nest.rollup()
nest.sortKeys()
nest.sortValues()
set.add()
set.empty()
set.forEach()
set.has()
set.remove()
set.size()
set.values()
SVG Axes
axis()
axis.innerTickSize()
axis.orient()
axis.outerTickSize()
axis.scale()
axis.tickFormat()
axis.tickPadding()
axis.ticks()
axis.tickSize()
axis.tickValues()
d3.svg.axis()
SVG Axes
D3
Behaviors
Core
Geo
Geometry
Layouts
Scales
SVG
Time
SVG Controls
brush()
brush.clamp()
brush.clear()
brush.empty()
brush.event()
brush.extent()
brush.on()
brush.x()
brush.y()
d3.svg.brush()
SVG Controls
Bundle Layout
Bundle Layout
bundle()
d3.layout.bundle()
Chord Layout
Chord Layout
chord.chords()
chord.groups()
chord.matrix()
chord.padding()
chord.sortChords()
chord.sortGroups()
chord.sortSubgroups()
d3.layout.chord()
Geo Paths
circle()
circle.angle()
circle.origin()
circle.precision()
d3.geo.area()
d3.geo.bounds()
d3.geo.centroid()
d3.geo.circle
d3.geo.distance()
d3.geo.graticule
d3.geo.interpolate()
d3.geo.length()
d3.geo.path()
d3.geo.rotation()
Geo Paths
graticule()
graticule.extent()
graticule.lines()
graticule.majorExtent()
graticule.majorStep()
graticule.minorExtent()
graticule.minorStep()
graticule.outline()
graticule.precision()
graticule.step()
path()
path.area()
path.bounds()
path.centroid()
path.context()
path.pointRadius()
path.projection()
rotation()
rotation.invert()
Geo Streams
clipExtent.extent()
d3.geo.clipExtent()
d3.geo.stream()
d3.geo.transform()
Geo Streams
listener.lineEnd()
listener.lineStart()
listener.point()
listener.polygonEnd()
listener.polygonStart()
listener.sphere()
transform.stream()
Cluster Layout
Cluster Layout
cluster()
cluster.children()
cluster.links()
cluster.nodeSize()
cluster.separation()
cluster.size()
cluster.sort()
cluster.value()
d3.layout.cluster()
Colors
color.rgb()
color.toString()
Colors
d3.color()
d3.hcl()
d3.hsl()
d3.lab()
d3.rgb()
hcl.brighter()
hcl.darker()
hcl.rgb()
hcl.toString()
hsl.brighter()
hsl.darker()
hsl.rgb()
hsl.toString()
lab.brighter()
lab.darker()
lab.rgb()
lab.toString()
rgb.brighter()
rgb.darker()
rgb.hsl()
rgb.toString()
Geo Projections
conicConformal.parallels()
conicEqualArea.parallels()
conicEquidistant.parallels()
d3.geo.albers()
d3.geo.albers.raw()
d3.geo.albersUsa()
d3.geo.azimuthalEqualArea()
d3.geo.azimuthalEqualArea.raw
d3.geo.azimuthalEquidistant()
d3.geo.azimuthalEquidistant.raw
d3.geo.conicConformal()
d3.geo.conicConformal.raw()
d3.geo.conicEqualArea()
d3.geo.conicEqualArea.raw()
d3.geo.conicEquidistant()
d3.geo.conicEquidistant.raw()
d3.geo.equirectangular()
d3.geo.equirectangular.raw
d3.geo.gnomonic()
d3.geo.gnomonic.raw
d3.geo.mercator()
d3.geo.mercator.raw
d3.geo.orthographic()
d3.geo.orthographic.raw
d3.geo.projection()
d3.geo.projectionMutator()
d3.geo.stereographic()
d3.geo.stereographic.raw
d3.geo.transverseMercator()
Geo Projections
projection()
projection.center()
projection.clipAngle()
projection.clipExtent()
projection.invert()
projection.precision()
projection.rotate()
projection.scale()
projection.stream()
projection.translate()
CSV
CSV
d3.csv()
d3.csv.format()
d3.csv.formatRows()
d3.csv.parse()
d3.csv.parseRows()
d3.dsv()
d3.tsv()
d3.tsv.format()
d3.tsv.formatRows()
d3.tsv.parse()
d3.tsv.parseRows()
dsv()
dsv.format()
dsv.formatRows()
dsv.parse()
dsv.parseRows()
Drag Behavior
d3.behavior.drag()
Drag Behavior
drag.on()
drag.origin()
Zoom Behavior
d3.behavior.zoom()
Zoom Behavior
zoom()
zoom.center()
zoom.event()
zoom.on()
zoom.scale()
zoom.scaleExtent()
zoom.size()
zoom.translate()
zoom.x()
zoom.y()
Requests
d3.csv()
d3.html()
d3.json()
d3.text()
d3.tsv()
d3.xhr()
d3.xml()
Requests
xhr.abort()
xhr.get()
xhr.header()
xhr.mimeType()
xhr.on()
xhr.post()
xhr.response()
xhr.responseType()
xhr.send()
Internals
d3.dispatch()
d3.functor()
d3.rebind()
dispatch.on()
dispatch.type()
Internals
Transitions
d3.ease()
d3.geo.interpolate()
d3.interpolate()
d3.interpolateArray()
d3.interpolateHcl()
d3.interpolateHsl()
d3.interpolateLab()
d3.interpolateNumber()
d3.interpolateObject()
d3.interpolateRgb()
d3.interpolateRound()
d3.interpolateString()
d3.interpolateTransform()
d3.interpolateZoom()
d3.interpolators
d3.timer()
d3.timer.flush()
d3.transition()
ease()
interpolate()
transition.attr()
transition.attrTween()
transition.call()
transition.delay()
transition.duration()
transition.each()
transition.ease()
transition.empty()
transition.filter()
transition.node()
transition.remove()
transition.select()
transition.selectAll()
transition.size()
transition.style()
transition.styleTween()
transition.text()
transition.transition()
transition.tween()
Transitions
Selections
d3.event
d3.mouse()
d3.select()
d3.selectAll()
d3.selection()
d3.touch()
d3.touches()
selection.append()
selection.attr()
selection.call()
selection.classed()
selection.data()
selection.datum()
selection.each()
selection.empty()
selection.enter()
selection.exit()
selection.filter()
selection.html()
selection.insert()
selection.interrupt()
selection.node()
selection.on()
selection.order()
selection.property()
selection.remove()
selection.select()
selection.selectAll()
selection.size()
selection.sort()
selection.style()
selection.text()
selection.transition()
Selections
Formatting
d3.format()
d3.formatPrefix()
d3.requote()
d3.round()
Formatting
Hull Geom
d3.geom.hull()
Hull Geom
hull()
hull.x()
hull.y()
Polygon Geom
d3.geom.polygon()
Polygon Geom
polygon.area()
polygon.centroid()
polygon.clip()
Quadtree Geom
d3.geom.quadtree()
Quadtree Geom
quadtree()
quadtree.extent()
quadtree.x()
quadtree.y()
root.add()
root.find()
Voronoi Geom
d3.geom.voronoi()
Voronoi Geom
voronoi()
voronoi.clipExtent()
voronoi.links()
voronoi.triangles()
voronoi.x()
voronoi.y()
Force Layout
d3.layout.force()
Force Layout
force.alpha()
force.charge()
force.chargeDistance()
force.drag()
force.friction()
force.gravity()
force.linkDistance()
force.links()
force.linkStrength()
force.nodes()
force.on()
force.resume()
force.size()
force.start()
force.stop()
force.theta()
force.tick()
Hierarchy Layout
d3.layout.hierarchy()
Hierarchy Layout
hierarchy()
hierarchy.children()
hierarchy.links()
hierarchy.revalue()
hierarchy.sort()
hierarchy.value()
Histogram Layout
d3.layout.histogram()
Histogram Layout
histogram()
histogram.bins()
histogram.frequency()
histogram.range()
histogram.value()
Pack Layout
d3.layout.pack()
Pack Layout
pack()
pack.children()
pack.links()
pack.padding()
pack.radius()
pack.size()
pack.sort()
pack.value()
Partition Layout
d3.layout.partition()
Partition Layout
partition()
partition.children()
partition.links()
partition.size()
partition.sort()
partition.value()
Pie Layout
d3.layout.pie()
Pie Layout
pie()
pie.endAngle()
pie.padAngle()
pie.sort()
pie.startAngle()
pie.value()
Stack Layout
d3.layout.stack()
Stack Layout
stack()
stack.offset()
stack.order()
stack.out()
stack.values()
stack.x()
stack.y()
Tree Layout
d3.layout.tree()
Tree Layout
tree()
tree.children()
tree.links()
tree.nodeSize()
tree.separation()
tree.size()
tree.sort()
tree.value()
Treemap Layout
d3.layout.treemap()
Treemap Layout
treemap()
treemap.children()
treemap.links()
treemap.mode()
treemap.padding()
treemap.ratio()
treemap.round()
treemap.size()
treemap.sort()
treemap.sticky()
treemap.value()
Localization
d3.locale()
locale.numberFormat()
locale.timeFormat()
locale.timeFormat.utc()
Localization
Namespaces
d3.ns.prefix
d3.ns.qualify()
Namespaces
Math
d3.random.bates()
d3.random.irwinHall()
d3.random.logNormal()
d3.random.normal()
d3.transform()
Math
transform.rotate
transform.scale
transform.skew
transform.toString()
transform.translate
Ordinal Scales
d3.scale.category10()
d3.scale.category20()
d3.scale.category20b()
d3.scale.category20c()
d3.scale.ordinal()
Ordinal Scales
ordinal()
ordinal.copy()
ordinal.domain()
ordinal.range()
ordinal.rangeBand()
ordinal.rangeBands()
ordinal.rangeExtent()
ordinal.rangePoints()
ordinal.rangeRoundBands()
ordinal.rangeRoundPoints()
Quantitative Scales
d3.scale.identity()
d3.scale.linear()
d3.scale.log()
d3.scale.pow()
d3.scale.quantile()
d3.scale.quantize()
d3.scale.sqrt()
d3.scale.threshold()
identity()
identity.copy()
identity.domain()
identity.tickFormat()
identity.ticks()
linear()
linear.clamp()
linear.copy()
linear.domain()
linear.interpolate()
linear.invert()
linear.nice()
linear.range()
linear.rangeRound()
linear.tickFormat()
linear.ticks()
log()
log.base()
log.clamp()
log.copy()
log.domain()
log.interpolate()
log.invert()
log.nice()
log.range()
log.rangeRound()
log.tickFormat()
log.ticks()
pow()
pow.clamp()
pow.copy()
pow.domain()
pow.exponent()
pow.interpolate()
pow.invert()
pow.nice()
pow.range()
pow.rangeRound()
pow.tickFormat()
pow.ticks()
quantile()
quantile.copy()
quantile.domain()
quantile.invertExtent()
quantile.quantiles()
quantile.range()
Quantitative Scales
quantize()
quantize.copy()
quantize.domain()
quantize.invertExtent()
quantize.range()
threshold()
threshold.copy()
threshold.domain()
threshold.invertExtent()
threshold.range()
Time Intervals
d3.time.day
d3.time.dayOfYear()
d3.time.days()
d3.time.friday
d3.time.hour
d3.time.hours()
d3.time.interval
d3.time.minute
d3.time.minutes()
d3.time.monday
d3.time.month
d3.time.months()
d3.time.saturday
d3.time.second
d3.time.seconds()
d3.time.sunday
d3.time.thursday
d3.time.tuesday
d3.time.wednesday
d3.time.week
d3.time.weekOfYear()
d3.time.weeks()
d3.time.year
d3.time.years()
interval()
interval.ceil()
interval.floor()
interval.offset()
interval.range()
interval.round()
interval.utc
Time Intervals
Time Formatting
d3.time.format()
d3.time.format.iso
d3.time.format.multi()
d3.time.format.utc()
format()
format.parse()
Time Formatting
Time Scales
d3.time.scale()
d3.time.scale.utc()
scale()
scale.clamp()
scale.copy()
scale.domain()
scale.interpolate()
scale.invert()
scale.nice()
scale.range()
scale.rangeRound()
scale.tickFormat()
scale.ticks()
Time Scales
Index
index