change _all conditionals to Count

This commit is contained in:
Joe Fleming 2015-08-13 11:34:53 -07:00
parent 8a03f4fd38
commit 4e5a6945ba
2 changed files with 8 additions and 4 deletions

View file

@ -517,8 +517,12 @@ define(function (require) {
var names = [];
var self = this;
_.forEach(array, function (obj) {
names.push({ label: obj.name, values: obj, index: index });
_.forEach(array, function (obj, i) {
names.push({
label: obj.name,
values: obj,
index: index
});
if (obj.children) {
var plusIndex = index + 1;

View file

@ -167,7 +167,7 @@ define(function (require) {
return pointLabel !== label.toString();
}
if (label && label !== '_all') {
if (label && label !== 'Count') {
d3.select(this).style('cursor', 'pointer');
}
@ -208,7 +208,7 @@ define(function (require) {
legendDiv.selectAll('li.color').each(function (d) {
var label = d.label;
if (label !== undefined && label !== '_all') {
if (label !== undefined && label !== 'Count') {
d3.select(this).call(self.events.addClickEvent());
}
});