X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/b97e9ecbc6a860d3543fa30de4063d922e4c0fac..6ab34326e7550bda4f6cb76797f3bea8908cad59:/assets/services-pie.js?ds=inline diff --git a/assets/services-pie.js b/assets/services-pie.js new file mode 100644 index 0000000..8cf5b84 --- /dev/null +++ b/assets/services-pie.js @@ -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();