Skip to content

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

Merged
archmoj merged 2 commits into
masterfrom
parcoords-bug-fix-undefined-ranges
Jul 3, 2019
Merged

parcoords - bug fix handling undefined ranges and dticks for tickText#4011
archmoj merged 2 commits into
masterfrom
parcoords-bug-fix-undefined-ranges

Conversation

@archmoj

@archmoj archmoj commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

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

@archmoj archmoj added bug something broken status: reviewable labels Jul 3, 2019
@archmoj archmoj added this to the v1.49.0 milestone Jul 3, 2019
Comment thread src/traces/parcoords/defaults.js Outdated
coerce('ticktext');
coerce('tickformat');
var range = coerce('range');
if(!range) {

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

etpinard commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

Nice fix @archmoj - I made one small comment.

@etpinard

etpinard commented Jul 3, 2019

Copy link
Copy Markdown
Contributor

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
@archmoj
archmoj deleted the parcoords-bug-fix-undefined-ranges branch July 3, 2019 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants