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

fractional bandwidth, using d3.blur #60

Merged
merged 3 commits into from
Jul 3, 2022
Merged

fractional bandwidth, using d3.blur #60

merged 3 commits into from
Jul 3, 2022

Conversation

Fil
Copy link
Member

@Fil Fil commented Jun 30, 2022

depends on d3/d3-array#151

Note that the blur radius is defined as r * pow2k * 0.95: the 0.95 factor is here to be as faithful as possible to the current version. We should probably accept that this is a change and set this factor to 1 for consistency with d3-array.

demo https://observablehq.com/@d3/fractional-bw-density-60

closes #59

@Fil Fil requested a review from mbostock June 30, 2022 11:32
@mbostock mbostock marked this pull request as ready for review July 3, 2022 13:47
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should consider this a breaking change for the purposes of this library (since anyone loading d3-array@2 will break as d3.blur2 will be undefined). However, it is not a breaking change for d3 and for Plot since the only breaking change is the stricter dependency requirement, and that caveat only applies if you’re not reading the dependencies from package.json as when using vanilla script tags.

@mbostock mbostock merged commit 653625b into main Jul 3, 2022
@mbostock mbostock deleted the fil/blur branch July 3, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support fractional bandwidths.
2 participants