Free, open source D3, InfoViz, Processing.js, and Recline.js bring dynamic, interactive -- and jaw-dropping -- data-driven graphics to the Web browser
You may have already seen D3 (short for Data-Driven Documents) in action -- it's the visualization library behind many of the interactive infographics on the New York Times online edition's pages. Links to some of those articles are at the website of Michael Bostock -- the principal author of D3, though he acknowledges considerable contributions from Jason Davies.
D3 is the offspring of an earlier project called Protovis. The evolution from Protovis to D3 -- as well as an excellent overview of D3's internals -- can be found in the paper, "D3: Data-Driven Documents," by Bostock, Vadim Ogievetsky, and Jeff Heer.
D3 is similar to jQuery in that it manipulates the DOM directly. This sets it apart from most other visualization tools, which execute in a separate set of objects and functions and call into the DOM through standard APIs. D3 employs entities already familiar to Web developers. For example, you can use CSS to style elements that D3 manipulates. Also, because D3 uses internally the same structures employed by the browser to represent the document, you can work with existing browser-based development and debugging tools with D3.
In D3's world, selections are key. Selections allow you to easily and iteratively perform operations on sets of document nodes. To change the color of all paragraph elements:
This technique of "chaining" a pipeline of functions -- each passing its results to the function appended to its right -- will be familiar to users of jQuery and Prototype. D3 programmers use it to concisely express multiple actions in a compact space. Selectors make DOM node manipulations as simple as setting attributes and styles, or as complex as sorting nodes, adding nodes, and removing nodes.
This weekend's Windows 10 upgrade has users angry, and it's unclear if the ploy will continue
Here’s the best of the best for Windows 10. Sometimes good things come in free packages
Speaking at the O'Reilly Fluent conference, Eich also endorsed the Service Workers mobile app...
Four, rich, pretrained machine learning APIs bring the smarts behind Google to your apps
F# 4.1 will include struct tuples, improved error messages, and backing for .Net Core
The Apache project for container orchestration aims higher than merely managing Docker or being a...
Whether their cloud is powered by Amazon, Google, Microsoft, or IBM, developers need security tools....