D3.Js v4.0.0 发布,一个基于数据的操作文档的JavaScript库
jopen 8年前
<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/f4ad1061d1155c08c08ae233b22db5ec.png" /></p> <p>D3 的全称是(Data-Driven Documents),顾名思义可以知道是一个被数据驱动的文档。D3.js是一个基于数据的操作文档的JavaScript库,可以让你绑定任何数据到DOM,支持DIV这种图案生成,也支持SVG这种图案的生成。D3帮助你屏蔽了浏览器差异,做出来图案的效果可以说是炫目得一塌糊涂,可是代码却很简洁。</p> <p><img alt="" src="https://simg.open-open.com/show/9b22f13972f1fefbbad0469a1a6053b2.jpg" /></p> <h2>更新日志</h2> <h3><a href="/misc/goto?guid=4958991802753762858">Colors</a>, <a href="/misc/goto?guid=4958991802851940311">Interpolators</a> and <a href="/misc/goto?guid=4958991802946532501">Scales</a></h3> <ul> <li><a href="/misc/goto?guid=4958991803051121417">Colors</a> now have opacity (rgba, hsla, etc.).</li> <li>New <a href="/misc/goto?guid=4958991803149910757">Cubehelix color space</a>.</li> <li>New <a href="/misc/goto?guid=4958991803238742838">sequential color scales</a>, including <a href="/misc/goto?guid=4958991803340630133">Viridis</a> and <a href="/misc/goto?guid=4958991803435308061">cyclical Rainbow</a>.</li> <li>New <a href="/misc/goto?guid=4958991803538549879">point</a> and <a href="/misc/goto?guid=4958991803636475462">band</a> scales replace <em>ordinal</em>.rangeBands and <em>ordinal</em>.rangePoints.</li> <li>New <a href="/misc/goto?guid=4958991803731238271">basis spline interpolators</a> (<em>e.g.</em>, <a href="/misc/goto?guid=4958991803824376254">continuous ColorBrewer schemes</a>).</li> </ul> <h3><a href="/misc/goto?guid=4958991803917363259">Shapes</a> and <a href="/misc/goto?guid=4958991804014218429">Layouts</a></h3> <ul> <li>Shapes (<em>e.g.</em>, <a href="/misc/goto?guid=4958991804117245501">lines</a>, <a href="/misc/goto?guid=4958991804206091158">areas</a>, <a href="/misc/goto?guid=4958991804309388156">arcs</a>) can now render to Canvas.</li> <li>Fixed <a href="/misc/goto?guid=4958991804408544791">cardinal</a> and <a href="/misc/goto?guid=4958991804500642264">monotone</a> splines.</li> <li>Added <a href="/misc/goto?guid=4958991804598094445">parameterized Catmull–Rom</a> and <a href="/misc/goto?guid=4958991804698447115">natural</a> splines.</li> <li>New deterministic, extensible <a href="/misc/goto?guid=4958991804794951501">velocity Verlet force layout</a>.</li> <li>New <a href="/misc/goto?guid=4958991804904499015">circle-packing layout</a>!</li> <li>New extensible <a href="/misc/goto?guid=4958991804997285766">treemap layout</a>; improved <a href="/misc/goto?guid=4958991805094688779">squarified treemaps</a>; added <a href="/misc/goto?guid=4958991805186801805">binary treemaps</a>.</li> <li>New <a href="/misc/goto?guid=4958991805289875950">d3.stratify</a> for tabular hierarchical data.</li> <li>New faster, mutable, non-recursive <a href="/misc/goto?guid=4958991805378626982">quadtrees</a>.</li> <li><a href="/misc/goto?guid=4958991805488595747">Voronoi diagrams</a> now expose topological information.</li> </ul> <h3><a href="/misc/goto?guid=4958991805584094811">Selections</a>, <a href="/misc/goto?guid=4958991805684829894">Transitions</a>, <a href="/misc/goto?guid=4958991805774228680">Easings</a> and <a href="/misc/goto?guid=4958991805873921056">Timers</a></h3> <ul> <li><a href="/misc/goto?guid=4958991805979576047">Selections</a> and <a href="/misc/goto?guid=4958991806068575246">transitions</a> are now immutable, providing a cleaner interface.</li> <li>New <a href="/misc/goto?guid=4958991806166658086"><em>selection</em>.raise</a>, <a href="/misc/goto?guid=4958991806268917889"><em>selection</em>.lower</a> and <a href="/misc/goto?guid=4958991806360896655"><em>selection</em>.dispatch</a> methods.</li> <li><a href="/misc/goto?guid=4958991806465923853">Time</a> is now frozen in the background, avoiding unintended effort.</li> <li>Timers can now be <a href="/misc/goto?guid=4958991806554806639">stopped</a> externally.</li> <li>Transitions can now interpolate <a href="/misc/goto?guid=4958991806644794741">CSS transforms</a> (in addition to <a href="/misc/goto?guid=4958991806755128448">SVG transforms</a>).</li> <li>You can now cancel transitions using <a href="/misc/goto?guid=4958991806850835765"><em>selection</em>.interrupt</a>.</li> <li>Easier transition chaining thanks to new <a href="/misc/goto?guid=4958991806949113697">d3.active</a> and changed <a href="/misc/goto?guid=4958991807047665198"><em>transition</em>.delay</a>.</li> <li>Better performance for homogenous transitions (<em>e.g.</em>, shared interpolators across elements).</li> <li>Better state persistence and enforcement for transitions.</li> <li>Fixed <a href="/misc/goto?guid=4958991807138271246">elastic</a> and <a href="/misc/goto?guid=4958991807234850213">bounce</a> easing.</li> </ul> <h3><a href="/misc/goto?guid=4958991807331803674">Even More!</a></h3> <ul> <li>Better default <a href="/misc/goto?guid=4958991807439421415">axis</a> appearance.</li> <li>Better <a href="/misc/goto?guid=4958991807526752048">brush</a> interaction.</li> <li>Built-in <a href="/misc/goto?guid=4958991807616998689">asynchronous queue</a> for loading files in parallel.</li> <li>New low-level <a href="/misc/goto?guid=4958991807713210685">d3.ticks</a> API.</li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958991807806267524" rel="nofollow">223 KB<strong>d3.zip</strong></a></li> <li><a href="/misc/goto?guid=4958991807898849539" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958991807995024691" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul>