Formula for Google Charts histogram

最后都变了- 提交于 2021-02-05 08:26:51

问题


What formula does Google Charts use to construct its histogram? For example, does it use Sturge's rule? Doane's rule? Scott's rule? etc. Is there any documentation on how it constructs it default bin size, min, and max?

Here is a link to the Histogram page for Google Charts.

Google Charts automatically chooses the number of bins for you. All bins are equal width and have a height proportional to the number of data points in the bin. In other respects, histograms are similar to column charts.


回答1:


check the histogram section in the notes for the October 1, 2018 release.

Generate buckets using tick generation algorithm. Default number of buckets is computed using a new histogram.numBucketsRule option. Possible values are 'sqrt', 'sturges', and 'rice'. See Histogram: Number of bins and width



来源:https://stackoverflow.com/questions/59832900/formula-for-google-charts-histogram

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!