equal
deleted
inserted
replaced
63 .on('click', function(d) { |
63 .on('click', function(d) { |
64 self.get('filter').set('discourse', d.id); |
64 self.get('filter').set('discourse', d.id); |
65 }); |
65 }); |
66 |
66 |
67 item.append("span") |
67 item.append("span") |
68 .html(function(d) { return d.name + ' <span class="count">(' + d.value + ')</span>'; }) |
68 .html(function(d) { return d.name + ' <span class="count">(' + d.count + ')</span>'; }) |
69 .style("margin-left", function() { return ( Ember.$(this).width() > Ember.$(this).parent().width() ? - ( Ember.$(this).width() / 2 ) + ( Ember.$(this).parent().width() / 2 ) : 0 ) + 'px'; }) |
69 .style("margin-left", function() { return ( Ember.$(this).width() > Ember.$(this).parent().width() ? - ( Ember.$(this).width() / 2 ) + ( Ember.$(this).parent().width() / 2 ) : 0 ) + 'px'; }) |
70 .style("margin-top", function() { return Ember.$(this).parent().height() / 2 - Ember.$(this).height() / 2 + 'px'; }); |
70 .style("margin-top", function() { return Ember.$(this).parent().height() / 2 - Ember.$(this).height() / 2 + 'px'; }); |
71 }); |
71 }); |
72 |
72 |
73 this._super(...arguments); |
73 this._super(...arguments); |
79 |
79 |
80 Object.keys(json).forEach(function(key) { |
80 Object.keys(json).forEach(function(key) { |
81 var discourse = json[key]; |
81 var discourse = json[key]; |
82 var category_key = self.get('constants').DISCOURSE_CATEGORY_KEYS[key]; |
82 var category_key = self.get('constants').DISCOURSE_CATEGORY_KEYS[key]; |
83 var category_value = self.get('constants').DISCOURSE_CATEGORY_VALUES[category_key]; |
83 var category_value = self.get('constants').DISCOURSE_CATEGORY_VALUES[category_key]; |
|
84 |
84 children.push({ |
85 children.push({ |
85 'id': key, |
86 'id': key, |
86 'name': discourse.label, |
87 'name': discourse.label, |
87 'value': discourse.count, |
88 'value': discourse.count, |
|
89 'count': discourse.count, |
88 'fill': category_value.fill, |
90 'fill': category_value.fill, |
89 'stroke': category_value.stroke |
91 'stroke': category_value.stroke |
90 }); |
92 }); |
91 }); |
93 }); |
92 |
94 |