equal
deleted
inserted
replaced
80 }); |
80 }); |
81 |
81 |
82 leaf.append("circle") |
82 leaf.append("circle") |
83 .attr("r", function(d) { return d.r; }) |
83 .attr("r", function(d) { return d.r; }) |
84 .attr("fill", function(d) { return d.fill; }) |
84 .attr("fill", function(d) { return d.fill; }) |
85 .attr("stroke", function() { return "#859097"; }); |
85 .attr("stroke", function(d) { return d.stroke; }); |
86 element.style("height", height + "px"); |
86 element.style("height", height + "px"); |
87 }); |
87 }); |
88 |
88 |
89 this._super(...arguments); |
89 this._super(...arguments); |
90 }, |
90 }, |
104 children[category_key]['children'] = children[category_key]['children'] || []; |
104 children[category_key]['children'] = children[category_key]['children'] || []; |
105 children[category_key]['children'].push({ |
105 children[category_key]['children'].push({ |
106 'id': key, |
106 'id': key, |
107 'name': discourse.label, |
107 'name': discourse.label, |
108 'value': discourse.count, |
108 'value': discourse.count, |
109 'fill': category_value.fill |
109 'fill': category_value.fill, |
|
110 'stroke': category_value.stroke |
110 }); |
111 }); |
111 }); |
112 }); |
112 |
113 |
113 nodes.children = []; |
114 nodes.children = []; |
114 Object.keys(children).forEach(function(key) { |
115 Object.keys(children).forEach(function(key) { |