var cfg = d3wb.config() .attr("margin", "50 50 50 50") .attr("debug", true) // draw debug canvas .data(["data.csv"]) var cv = cfg.toCanvas() // converts config object to canvas object d3.queue() // load-pattern for multiple datasets .defer(d3.csv, cv.data[0]) .await(function(error, data) { // do something with the data.. cv.selectAll("text") .data(data).enter().append("text") .text(function(d) { return d["id"] + " != " + d["value"] }) .attr("text-anchor", "middle") .attr("x", cv.wid / 2) .attr("y", cv.margin.top + 10) .attr("fill", d3wb.color.white) })