Hi Pasha, With the release of Google Charts for version 46, we announced a change in how Histogram buckets were computed. See: https://developers.google.com/chart/interactive/docs/release_notes#october-1,-2018
Generate buckets using (the) tick generation algorithm. Default number of buckets is computed using a new histogram.numBucketsRule option. Possible values are 'sqrt', 'sturges', and 'rice'. See https://en.wikipedia.org/wiki/Histogram#Number_of_bins_and_width So it is the tick generation algorithm that decides on the nice round numbers to use, given the approximate number of buckets to use as computed by the numBucketsRule. We need to update the docs according to these new features. On Fri, Jun 5, 2020 at 3:08 PM Pasha S <[email protected]> wrote: > Thanks. But these rules only gives you the number of bins and bin size. it > doesn't give you the limits of the bin. i believe that takes a bit more > work because the google charts bins have nice starting and ending points > like 5, 10, 15, 20, .... > > On Thursday, June 4, 2020 at 12:56:55 PM UTC-7, Jon Orwant wrote: >> >> It's described here: >> https://en.wikipedia.org/wiki/Histogram#Number_of_bins_and_width. >> >> Jon >> >> On Thu, Jun 4, 2020 at 2:53 AM Pasha S <[email protected]> wrote: >> >>> I'd like to make a table to accompany my histogram but I need to know >>> how they get their bucket sizes. They claim to use a "very well-known >>> algorithm" to calculate bucket sizes. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-visualization-api/b89a135e-3643-4495-8b0a-5bce8837fef9%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-visualization-api/b89a135e-3643-4495-8b0a-5bce8837fef9%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/55a6a694-24a5-44dc-8817-34f19a2c7436o%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/55a6a694-24a5-44dc-8817-34f19a2c7436o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPjhFsd0kYhyD1QjvEkt97hcXkysw7wqvjhRfkq0qb1WA%40mail.gmail.com.
