Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3-library
Commits
dd088645
Commit
dd088645
authored
Jun 14, 2016
by
Mike Bostock
Browse files
Update CHANGES.
parent
f4feb01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CHANGES.md
View file @
dd088645
...
...
@@ -975,10 +975,10 @@ Likewise, in place of 3.x’s d3.time.weekOfYear, in 4.0 you would say:
d3
.
timeWeek
.
count
(
d3
.
timeYear
(
now
),
now
);
// 24
```
The new
*interval*
.count is of course more general. For example, you can use it to compute
the week-of-month
:
The new
*interval*
.count is of course more general. For example, you can use it to compute
hour-of-week for a weekly heatmap
:
```
js
d3
.
time
Week
.
count
(
d3
.
time
Month
(
now
),
now
);
//
2
d3
.
time
Hour
.
count
(
d3
.
time
Week
(
now
),
now
);
//
64
```
Here are all the equivalences from 3.x to 4.0:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment