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

d3.sum. #191

Closed
mbostock opened this issue Jun 13, 2011 · 2 comments
Closed

d3.sum. #191

mbostock opened this issue Jun 13, 2011 · 2 comments

Comments

@mbostock
Copy link
Member

But, d3.stats.mean and d3.stats.median.

@jasondavies
Copy link
Contributor

These are already in #143, although mean and median are in d3.stats. I can pull them out into a separate pull request for core if you'd like?

@mbostock
Copy link
Member Author

I'm thinking only d3.sum should be included in core. Not because it's a statistic per se, but because it's needed to do layout of things like stacked bars. Also, for consistency with Python, note that Python has sum() built-in but not the others.

If you wouldn't mind breaking that out as a separate pull request, that'd be great! I'm still for having a stats module, but I should probably review the API for it in a bit more detail before we commit to not making backwards-compatible changes.

Also, have you seen https://github.com/nsfmc/atoll.js by @nsfmc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants