Skip to content

Commit 0a427eb

Browse files
committedAug 24, 2020
time_copy is part of the API but was missing from the README
1 parent 1dd3f5a commit 0a427eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Nicing a scale only modifies the current domain; it does not automatically nice
231231

232232
Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa.
233233

234-
<a name="tickFormat" href='#tickFormat'>#</a> d3.<b>tickFormat</b>(<i>start</i>, <i>stop</i>, <i>count</i>[, <i>specifier</i>]) · [Source](https://github.com/d3/d3-scale/blob/master/src/tickFormat.js), [Examples](https://observablehq.com/@d3/scale-ticks)
234+
<a name="tickFormat" href="#tickFormat">#</a> d3.<b>tickFormat</b>(<i>start</i>, <i>stop</i>, <i>count</i>[, <i>specifier</i>]) · [Source](https://github.com/d3/d3-scale/blob/master/src/tickFormat.js), [Examples](https://observablehq.com/@d3/scale-ticks)
235235

236236
Returns a [number format](https://github.com/d3/d3-format) function suitable for displaying a tick value, automatically computing the appropriate precision based on the fixed interval between tick values, as determined by [d3.tickStep](https://github.com/d3/d3-array/blob/master/README.md#tickStep).
237237

@@ -533,6 +533,10 @@ An optional tick *count* argument allows greater control over the step size used
533533

534534
Nicing is useful if the domain is computed from data, say using [extent](https://github.com/d3/d3-array/blob/master/README.md#extent), and may be irregular. For example, for a domain of [2009-07-13T00:02, 2009-07-13T23:48], the nice domain is [2009-07-13, 2009-07-14]. If the domain has more than two values, nicing the domain only affects the first and last value.
535535

536+
<a name="time_copy" href="#time_copy">#</a> <i>time</i>.<b>copy</b>() · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime)
537+
538+
See [*continuous*.copy](#continuous_copy).
539+
536540
<a name="scaleUtc" href="#scaleUtc">#</a> d3.<b>scaleUtc</b>([[<i>domain</i>, ]<i>range</i>]) · [Source](https://github.com/d3/d3-scale/blob/master/src/utcTime.js), [Examples](https://observablehq.com/@d3/d3-scaletime)
537541

538542
Equivalent to [scaleTime](#scaleTime), but the returned time scale operates in [Coordinated Universal Time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time.

0 commit comments

Comments
 (0)
Please sign in to comment.