Google图表直方图的公式 [英] Formula for Google Charts histogram

查看:68
本文介绍了Google图表直方图的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google图表用于构建直方图的公式是什么?例如,它是否使用Sturge规则?杜恩的法则?斯科特的法则?等等.是否有任何文档说明如何构造默认箱大小,最小和最大?

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?

这里是 直方图 Google图表的页面.

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

Google图表会自动为您选择垃圾箱数.所有容器的宽度均等,高度与容器中数据点的数量成正比.在其他方面,直方图类似于柱状图.

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.

推荐答案

使用刻度生成算法生成存储桶.默认的存储桶数是使用新的 histogram.numBucketsRule 选项计算的.可能的值为'sqrt''sturges''rice'.请参见直方图:容器数和宽度

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

这篇关于Google图表直方图的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆