====D3.JS API Example==== This example shows how you can use D3s powerful visualisation tools with live ARDI data. ===The Base Page=== First, prepare a basic web page that.... * Contains an area for a bar chart, * Includes the required libraries from ARDI, JQuery and D3 Test D3 Page
===The Script=== Next, we can start on our script. var content; var incomingdata = [0]; $(function() { content = d3.select("#content") .selectAll("div") .data(incomingdata) .enter().append("div") .style("width", function(d) { return (d * 10) + "px"; }) .text(function(d) { return d; }); });