Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interval for rect #550

Merged
merged 6 commits into from
Sep 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/transforms/interval.js
Fil authored and mbostock committed Sep 24, 2021
commit f7c29ad954eddef2698932a63a59df6d815b6b39
2 changes: 1 addition & 1 deletion src/transforms/interval.js
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ function maybeInterval(interval) {
// The interval may be specified either as x: {value, interval} or as {x,
// interval}. The former is used, for example, for Plot.rect.
function maybeIntervalValue(value, {interval} = {}) {
(value = {...maybeValue(value)});
value = {...maybeValue(value)};
value.interval = maybeInterval(value.interval === undefined ? interval : value.interval);
return value;
}