Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 0d075ec

Browse files
committed
Cleanup
1 parent 78fb375 commit 0d075ec

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

app/components/vistk-network.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default Ember.Component.extend({
6363
var_y: 'y',
6464
radius: 5,
6565
var_color: 'color',
66+
var_group: 'group',
6667
color: (d) => { return d; },
6768
y_invert: true,
6869
var_id: 'id',
@@ -74,7 +75,7 @@ export default Ember.Component.extend({
7475
//if there is no search, color products export > 0 and rca > 1
7576
// industries if RCA > 1 ( varDependent for industries is also rca )
7677
if(keyFilter.length > 0) {
77-
if(d.group === keyFilter[0]) {
78+
if(d[vars.var_group] === keyFilter[0]) {
7879
return d.color;
7980
} else {
8081
return 'white';
@@ -156,7 +157,6 @@ export default Ember.Component.extend({
156157

157158
Ember.run.later(this , function() {
158159
if(this.get('network')) {
159-
console.log('filter netowr', keyFilter)
160160
d3.select(this.get('id')).call(this.get('network'));
161161
this.get('network').params({filter: keyFilter});
162162
this.get('network').params({
@@ -166,7 +166,7 @@ export default Ember.Component.extend({
166166
type: 'circle',
167167
fill: (d, i, vars) => {
168168
if(keyFilter.length > 0) {
169-
if(d.group === keyFilter[0]) {
169+
if(d[vars.var_group] === keyFilter[0]) {
170170
return d.color;
171171
} else {
172172
return 'white';

app/components/vistk-scatterplot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ export default Ember.Component.extend({
203203

204204
Ember.run.later(this , function() {
205205
if(this.get('scatter')) {
206-
207206
this.get('scatter').params({filter: keyFilter});
208207
this.get('scatter').params().refresh = true;
209208
d3.select(this.get('id')).call(this.get('scatter'));

0 commit comments

Comments
 (0)