A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. D3.js 3
  4. Time

Time

API Reference ▸ Time

See one of:

  • Time Formatting - convert between times and strings.
  • Time Scales - compute visual encodings of times.
  • Time Intervals - perform simple time arithmetic.

© 2010–2016 Michael Bostock
Licensed under the BSD License.
https://github.com/d3/d3-3.x-api-reference/blob/master/Time.md

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()
Cluster Layout
Cluster Layout
cluster()
cluster.children()
cluster.links()
cluster.nodeSize()
cluster.separation()
cluster.size()
cluster.sort()
cluster.value()
d3.layout.cluster()
Force Layout
Force Layout
d3.layout.force()
force.alpha()
force.charge()
force.chargeDistance()
force.drag()
force.friction()
force.gravity()
force.linkDistance()
force.linkStrength()
force.links()
force.nodes()
force.on()
force.resume()
force.size()
force.start()
force.stop()
force.theta()
force.tick()
Hierarchy Layout
Hierarchy Layout
d3.layout.hierarchy()
hierarchy()
hierarchy.children()
hierarchy.links()
hierarchy.revalue()
hierarchy.sort()
hierarchy.value()
Histogram Layout
Histogram Layout
d3.layout.histogram()
histogram()
histogram.bins()
histogram.frequency()
histogram.range()
histogram.value()
Pack Layout
Pack Layout
d3.layout.pack()
pack()
pack.children()
pack.links()
pack.padding()
pack.radius()
pack.size()
pack.sort()
pack.value()
Partition Layout
Partition Layout
d3.layout.partition()
partition()
partition.children()
partition.links()
partition.size()
partition.sort()
partition.value()
Pie Layout
Pie Layout
d3.layout.pie()
pie()
pie.endAngle()
pie.padAngle()
pie.sort()
pie.startAngle()
pie.value()
Stack Layout
Stack Layout
d3.layout.stack()
stack()
stack.offset()
stack.order()
stack.out()
stack.values()
stack.x()
stack.y()
Tree Layout
Tree Layout
d3.layout.tree()
tree()
tree.children()
tree.links()
tree.nodeSize()
tree.separation()
tree.size()
tree.sort()
tree.value()
Treemap Layout
Treemap Layout
d3.layout.treemap()
treemap()
treemap.children()
treemap.links()
treemap.mode()
treemap.padding()
treemap.ratio()
treemap.round()
treemap.size()
treemap.sort()
treemap.sticky()
treemap.value()
SVG Shapes
arc()
Arrays
Arrays
SVG Shapes
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.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.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
d3.transpose()
d3.values()
d3.variance()
d3.zip()
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()
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:circle
svg:ellipse
svg:line
svg:path
svg:polygon
svg:polyline
svg:rect
svg:text
symbol()
symbol.size()
symbol.type()
SVG Axes
SVG Axes
axis()
axis.innerTickSize()
axis.orient()
axis.outerTickSize()
axis.scale()
axis.tickFormat()
axis.tickPadding()
axis.tickSize()
axis.tickValues()
axis.ticks()
d3.svg.axis()
D3
Behaviors
Core
Geo
Geometry
Layouts
SVG
Scales
Time
SVG Controls
SVG Controls
brush()
brush.clamp()
brush.clear()
brush.empty()
brush.event()
brush.extent()
brush.on()
brush.x()
brush.y()
d3.svg.brush()
Geo Paths
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()
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
Geo Streams
clipExtent.extent()
d3.geo.clipExtent()
d3.geo.stream()
d3.geo.transform()
listener.lineEnd()
listener.lineStart()
listener.point()
listener.polygonEnd()
listener.polygonStart()
listener.sphere()
transform.stream()
Colors
Colors
color.rgb()
color.toString()
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
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()
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
Drag Behavior
d3.behavior.drag()
drag.on()
drag.origin()
Zoom Behavior
Zoom Behavior
d3.behavior.zoom()
zoom()
zoom.center()
zoom.event()
zoom.on()
zoom.scale()
zoom.scaleExtent()
zoom.size()
zoom.translate()
zoom.x()
zoom.y()
Requests
Requests
d3.csv()
d3.html()
d3.json()
d3.text()
d3.tsv()
d3.xhr()
d3.xml()
xhr.abort()
xhr.get()
xhr.header()
xhr.mimeType()
xhr.on()
xhr.post()
xhr.response()
xhr.responseType()
xhr.send()
Internals
Internals
d3.dispatch()
d3.functor()
d3.rebind()
dispatch.on()
dispatch.type()
Transitions
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()
Selections
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()
Formatting
Formatting
d3.format()
d3.formatPrefix()
d3.requote()
d3.round()
Hull Geom
Hull Geom
d3.geom.hull()
hull()
hull.x()
hull.y()
Polygon Geom
Polygon Geom
d3.geom.polygon()
polygon.area()
polygon.centroid()
polygon.clip()
Quadtree Geom
Quadtree Geom
d3.geom.quadtree()
quadtree()
quadtree.extent()
quadtree.x()
quadtree.y()
root.add()
root.find()
root.visit()
Voronoi Geom
Voronoi Geom
d3.geom.voronoi()
voronoi()
voronoi.clipExtent()
voronoi.links()
voronoi.triangles()
voronoi.x()
voronoi.y()
Localization
Localization
d3.locale()
locale.numberFormat()
locale.timeFormat()
locale.timeFormat.utc()
Namespaces
Namespaces
d3.ns.prefix
d3.ns.qualify()
Math
Math
d3.random.bates()
d3.random.irwinHall()
d3.random.logNormal()
d3.random.normal()
d3.transform()
transform.rotate
transform.scale
transform.skew
transform.toString()
transform.translate
Ordinal Scales
Ordinal Scales
d3.scale.category10()
d3.scale.category20()
d3.scale.category20b()
d3.scale.category20c()
d3.scale.ordinal()
ordinal()
ordinal.copy()
ordinal.domain()
ordinal.range()
ordinal.rangeBand()
ordinal.rangeBands()
ordinal.rangeExtent()
ordinal.rangePoints()
ordinal.rangeRoundBands()
ordinal.rangeRoundPoints()
Quantitative Scales
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()
quantize()
quantize.copy()
quantize.domain()
quantize.invertExtent()
quantize.range()
threshold()
threshold.copy()
threshold.domain()
threshold.invertExtent()
threshold.range()
Time Intervals
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 Formatting
Time Formatting
d3.time.format()
d3.time.format.iso
d3.time.format.multi()
d3.time.format.utc()
format()
format.parse()
Time Scales
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()
Copyright ©2025 TypeError Powered By AnyPost, page cost 17ms.
Privacy Policy