1. 极为重要的reference: [1] How selections works. http://bost.ocks.org/mike/selection/ [2] Nested selections. http://bost.ocks.org/mike/nest/ 2. 相关概念笔记 (1)Selections are usually seen as arrays of DOM elements, but it is not very accurate. There are two ma…
几个非常有用的links: [1] three little circles. http://bost.ocks.org/mike/circles/ [2] How selection works. http://bost.ocks.org/mike/selection/ [3] Thinking with join. http://bost.ocks.org/mike/join/ 具体而言,data()是用来将DOM element与数据进行绑定起来,其第二个参数可以用来specify当前的每…
svg.append('path').attr({ id: 'mypath', d: 'M50 100Q350 50 350 250Q250 50 50 250' }) path 的指令有: 指令 参数 指令说明 M x y 起始点的 x, y 座标(moveto) L x y 从目前点的座标画直线到指定点的 x, y 座标(lineto) H x 从目前点的座标画水平直线到指定的 x 轴座标(horizontal lineto) V y 从目前点的座标画垂直线到指定的 y 轴座标(vertic…