-
-
Notifications
You must be signed in to change notification settings - Fork 114
Fit transform adjustments #493
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
Conversation
| if (this.props.beforeAddTrace) { | ||
| this.props.beforeAddTrace(payload); | ||
| } | ||
| graphDiv.data.push({type: 'scatter', mode: 'markers'}); |
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.
what's the reasoning for this change?
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.
a fit is a new trace in the data array, so I need to be able to have the new trace be something other than 'scatter', to do something like:
const addAction = {
label: _('Fit'),
handler: (context) => {
const value = {
transforms: [{
inputUid,
type: 'fit',
fitfunction: 'm*x + b'
}]
};
if (context.onUpdate) {
context.onUpdate({
type: EDITOR_ACTIONS.ADD_TRACE,
payload: value
});
}
},
};
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.
if you're actually not using this, let's revert it :)
|
💃 |
b150881 to
29e768f
Compare
d15b9d6 to
ab0c24a
Compare
|
ok @nicolaskruchten this is ready for another review |
| .numeric-input__wrapper { | ||
| line-height: 20px; | ||
| max-width: 100%; | ||
| width: 100%; |
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 causes some visual diffs in Percy that don't seem awesome...
|
You'll have to walk me through some of these changes :) |
| render() { | ||
| const {data = [], localize: _} = this.context; | ||
| const {canAdd, canGroup, children, messageIfEmptyFold} = this.props; | ||
| const {canAdd, canGroup, children, messageIfEmptyFold, panel} = this.props; |
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.
I would recommend changing panel to excludeFits or something as a boolean, just to match canAdd and canGroup
ee5d420 to
1a70a03
Compare
1a70a03 to
d860655
Compare
No description provided.