--- a/cms/app-client/app/components/discourses-component.js Fri Jul 01 22:15:35 2016 +0200
+++ b/cms/app-client/app/components/discourses-component.js Sun Jul 03 13:13:10 2016 +0200
@@ -14,9 +14,8 @@
didRender: function() {
var self = this;
var baseURL = env.baseURL.replace(/\/$/,"")+'/api/v1';
-
+
d3.json(baseURL + "/discourses", function(discourses) {
-
var width = self.$().parent().width();
var height = self.$().parent().height() - self.$().siblings().height();
@@ -31,7 +30,6 @@
var caption = element.append("div")
.attr("class", "caption");
-
var caption_nodes = caption.selectAll(".node")
.data(bubbles);
@@ -46,7 +44,6 @@
.on('click', function(d) {
self.get('filter').set('discourse', d.id);
});
-
item.append("span")
.text(function(d) { return d.name; })
.style("display", function(d) { return d.children ? 'none' : 'inline-block'; })
@@ -61,7 +58,6 @@
var svg_nodes = svg.selectAll(".node")
.data(bubbles);
-
svg_nodes.enter().append("g")
.attr("class", function(d) { return "node" + (!d.children ? " leaf" : ""); })
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
@@ -74,8 +70,7 @@
leaf.append("circle")
.attr("r", function(d) { return Math.max(7.5 + d.r * 2, d.r * 2); })
.attr("fill", function(d) { return d.fill; })
- .attr("stroke", function() { return "#13212d"; });
-
+ .attr("stroke", function() { return "#859097"; });
element.style("height", height + "px");
});