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

Expose options for bin width and bin count in histogram function #43

Open
hughess opened this issue Nov 16, 2021 · 0 comments
Open

Expose options for bin width and bin count in histogram function #43

hughess opened this issue Nov 16, 2021 · 0 comments

Comments

@hughess
Copy link

hughess commented Nov 16, 2021

The methods available in the histogram function work for many cases, but not all. It would be helpful to be able to pass in a bin width or bin count to override the result of the bin calc function:

ecStat.histogram(data, binWidth=50)
// OR
ecStat.histogram(data, binCount=10)
// OR
ecStat.histogram(data, method='freedmanDiaconis')

This would allow a lot more flexibility in how to use the histogram function (e.g., you could add a slider component to a histogram chart to let a user play around with the bin count or width on a page).

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

No branches or pull requests

1 participant