-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subsetter Updates #241
Subsetter Updates #241
Conversation
I tried to make sure this would be backwards-compatible, but keep your eyes peeled for anything you think might cause something to break. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. One question for you below before approval.
@@ -10,7 +10,7 @@ export default function consolidateData(raw) { | |||
if (this.filters.length) { | |||
this.filters.forEach(filter => { | |||
this.filtered_data = this.filtered_data.filter(d => { | |||
return filter.val === 'All' | |||
return filter.all === true && filter.index === 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pburnsdata Does filter.index
change when the user updates a subsetter input? What code controls that update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, just like val changes - the code that controls it is below
@@ -85,11 +96,14 @@ export default function makeSubsetterControl(control, control_wrap) { | |||
}); | |||
} else { | |||
let value = select(this).select('option:checked').property('text'); | |||
let index = select(this).select('option:checked').property('index'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwildfire this is where it gets updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like this method! One request: tables need the same treatment.
Remove css font import for open sans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Definitely needs a full set of feature & regression testing though.
build/webcharts.js
Outdated
@@ -3068,6 +3074,8 @@ | |||
.attr('multiple', control.multiple ? true : null) | |||
.datum(control); | |||
|
|||
var specifiedValues = controls.values; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be control.values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in ff30e6e
Issues
#235
#236
#237