Commits

Simon Cross committed 647ca7c

Construct svg using d3 directly.

Comments (0)

Files changed (1)

 
         function select_plot() {
             $(opts.chart).empty();
-            var svg = dimple.newSvg(opts.chart, 800, 400);
+            var svg = d3.select(opts.chart).append("svg")
+                .attr("width", 800)
+                .attr("height", 400);
             var chart = new dimple.chart(svg, []);
             var plot = distri.plots.all[$select.val()];
             plot.init({