codecamp

统计 - 饼图

饼图是类别的圆形图形表示,作为切片以说明数字比例。 每个切片的弧长与其表示的类别的数量成比例。

问题陈述:

创建一个饼图,说明一个社会中的孩子们所玩的各种运动。

Sr. No. 运动 儿童
1 篮球 15
2 排球 15
3 Badminton 10
4 Cricket 10
5 Football 20

解:

绘制饼图,如下所示:

Pie Chart
统计 - McNemar检验
统计数据 - 平均偏差
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Statistics Tutorial

Statistics Useful Resources

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }