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

Add monotone interpolation for lines and areas. #133

Merged
merged 4 commits into from May 7, 2011
Merged

Add monotone interpolation for lines and areas. #133

merged 4 commits into from May 7, 2011

Conversation

jasondavies
Copy link
Contributor

Based on the Protovis implementation.

@mbostock
Copy link
Member

mbostock commented May 2, 2011

Nice! I could imagine another variant of monotone interpolation that flips x & y, but this seems like a reasonable starting point. I'll take a look soon.

@mbostock
Copy link
Member

mbostock commented May 3, 2011

I added basis-open and cardinal-open interpolate in commits @d1c406f43c2acb2bc5187db1a3a72f156b45df88 @a0d4d0bd8e49a48f6fd55809c9df02e310f796f0. It's useful if you want to control the tangents manually (for example, to color a segmented cardinal or basis spline). Any thoughts?

@jasondavies
Copy link
Contributor Author

Looks good; one step closer towards #122!

@mbostock
Copy link
Member

mbostock commented May 3, 2011

Cool, will merge this shortly!

@mbostock mbostock merged commit 33486bb into d3:master May 7, 2011
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.

None yet

2 participants