摘要:
表格线先定义svg环境var height = 500, width = 500, margin = 25;var svg = d3.select("body").append("svg") .attr("class","axis") .attr("width", width) ... 阅读全文
摘要:
概要来源:1660年,德国人使用statt记录人们出生、死亡信息。定义:用收集数据、分析数据、由数据得出结论的一组概念、方法。思想核心:随机性、规律性及彼此关系。统计学根基:1 概率,一个取值为0到1的数,告诉我们某一特定时间有多大机会发生。2 变量,可能取2个或更多可能值的特征、特质或属性。 eg... 阅读全文
摘要:
简单的svgvar width=600, height=500; var svg = d3.select("body").append("svg"); svg.attr("height",height) .attr("width",width); svg.append("... 阅读全文
摘要:
temp = '32'if temp > 85: print "Hot"elif temp > 62: print "Comfortable" else: print "Cold" 结果输出为Hot.Why?Essentially, "...the choice whether one ... 阅读全文
摘要:
nested condition statement 嵌套条件语句Interpreter 解释器branching programs 分支程序syntax 语法semantic语义code structure 代码结构piece of code 代码段constant time 常数时间loopin... 阅读全文
摘要:
对这个做了一个小小的改变json数据也在以上链接var width=screen.width-100, height=screen.height-160;//颜色尺度var color = d3.scale.category20();//var force=d3.layout.force(... 阅读全文
摘要:
单元素动画transition().duration(duration)var body = d3.select("body"), duration = 5000; body.append("div") .classed("box",true) .style("background-color"... 阅读全文
摘要:
坐标轴-横向d3.svg.axisvar height=500,width=500,margin=25,offset=50,axisWidth=width-2*margin,svg;function createSVG(){ svg=d3.select("body").append("svg") ... 阅读全文
摘要:
d3.js数据可视化实战手册 学习笔记插值器Interpolation 给定值域,往中间填值并打印出来字符插值var data=[];var sizeScale=d3.scale.linear() .domain([0,9]) .range([ "italic bold 12px/30px Geo... 阅读全文
摘要:
颜色尺度d3.scale.category()d3.scale.category10()construct an ordinal scale with ten categorical colors.d3.scale.category20()construct an ordinal scale wit... 阅读全文