随笔分类 - D3.js
D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.
摘要:1、变量JAVASCRIPT的变量是一种类型宽松的语言。定义变量不用指定数据类型。而且还是动态可变的。var value = 100;value = 99.9999;value = false;value = "This can't possibly work.";value = "Argh, it does work! No errorzzzz!";2、数组从0开始var percentages = [ 0.55, 0.32, 0.91 ];var names = [ "Ernie", "Bert", &
阅读全文
摘要:1 2 3 4 5 D3学习记录 6 7 18 19 20 21 22 23 43 44 D3.js也是一个javascript框架,像jquery一样, 只不过他的特长是在数据可视化这一块而已。所以不要觉得D3是多么的复杂。在上面的代码中我们可以看到D3的一些用法: 选择元素:d3.select(“element”),这个就是jquery中的$(),只不过没有采用简写的形式。 创建并添加新元素到选定元素后:.append("element"),就是javascript中的append方法一样,他返回的是一个添加了...
阅读全文
浙公网安备 33010602011771号