Mercurial > bottledash
diff modules/roundup_cc/graph.html @ 13:63b9f41c3008
made the charts a bit more modular - can now define the div_name and the script name in the .conf data
author | sean |
---|---|
date | Wed, 05 Aug 2015 12:37:33 +0200 |
parents | 50f4c64834cb |
children |
line wrap: on
line diff
--- a/modules/roundup_cc/graph.html Tue Aug 04 16:00:07 2015 +0200 +++ b/modules/roundup_cc/graph.html Wed Aug 05 12:37:33 2015 +0200 @@ -95,6 +95,8 @@ // makeChart(); // }; + var d3jsInjectionTarget="X"; + var critical=[]; var urgent=[]; var bug=[]; @@ -264,7 +266,7 @@ //draw the chart - function makeChart(){ + function makeChart(div_name){ //declaration var sizeOfSystemBorders = 20; @@ -320,7 +322,7 @@ .orient("left"); - var svg = d3.select(".chart") + var svg = d3.select("." + d3jsInjectionTarget) .append("svg") .attr("class", "svg") // .attr("width", width)