]> nos-oignons.net Git - website.git/blobdiff - assets/services-pie.js
Retrait du JS inline de la page Services
[website.git] / assets / services-pie.js
diff --git a/assets/services-pie.js b/assets/services-pie.js
new file mode 100644 (file)
index 0000000..8cf5b84
--- /dev/null
@@ -0,0 +1,20 @@
+var content = d3.select("#content");
+var consensus_figure = content.append("figure")
+  .attr('class', 'graph graph-consensus')
+consensus_figure.append("span")
+  .attr("id", "consensus-pie");
+consensus_figure.append("figcaption")
+  .text(L10n.consensus_weight);
+
+var exit_figure = content.append("figure")
+  .attr('class', 'graph graph-exit')
+exit_figure.append("span")
+  .attr("id", "exit-pie");
+exit_figure.append("figcaption")
+  .text(L10n.exit_probability);
+
+content.append("div")
+  .style("clear", "left");
+
+new ConsensusPieDrawer("#consensus-pie").draw();
+new ExitPieDrawer("#exit-pie").draw();