Skip to content
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

parcoords - bug fix handling undefined ranges and dticks for tickText #4011

Merged
merged 2 commits into from Jul 3, 2019

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jul 3, 2019

In addition to some refactors (e.g. to avoid using one variable name in two scopes),
this PR fixes the tickText defaults for undefined ranges and ticks to be used by tickText.

Please note the changes in two baselines would make them look similar to what they look before #3966.
@plotly/plotly_js

@@ -55,6 +55,19 @@ function dimensionDefaults(dimensionIn, dimensionOut, parentOut, opts) {
coerce('ticktext');
coerce('tickformat');
var range = coerce('range');
if(!range) {
Copy link
Contributor

@etpinard etpinard Jul 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I would move this down to the plot step. That way we don't have to loop over the data during the defaults.

Copy link
Contributor Author

@archmoj archmoj Jul 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call.
Done in bf02101.

@etpinard
Copy link
Contributor

@etpinard etpinard commented Jul 3, 2019

Nice fix @archmoj - I made one small comment.

@etpinard
Copy link
Contributor

@etpinard etpinard commented Jul 3, 2019

Excellent. 💃

Sorry about those intermittent test failures. I'm working on it at the moment.

@archmoj archmoj merged commit dd7eb69 into master Jul 3, 2019
8 of 10 checks passed
@archmoj archmoj deleted the parcoords-bug-fix-undefined-ranges branch Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants