Tom Schaefer - 2012-12-15 20:37:25 -
In reply to message 1 from Sanni Islamiyat
There are different ways to work with data in d3.
(1)
CSV, JSON, XML, XHR (Ajax), XML, Text are supported by d3.js.
e.g.
$r = d3()->csv("data.csv", function(data){
});
or
$f = f3("data")->add("your js code here");
$r = d3()->csv("data.csv", $f);
By this you can load csv data from the server and process it within the callback function. It is being processed in the browser.
(2)
you json_encode your data records into a structure that can be handeld by d3-scripts.