Skip to content

Bar & ErrorBar autorange fixes - #3452

Merged
etpinard merged 5 commits into
masterfrom
bar-errorbar-autorange-fixes
Jan 22, 2019
Merged

Bar & ErrorBar autorange fixes#3452
etpinard merged 5 commits into
masterfrom
bar-errorbar-autorange-fixes

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

fixes#3031 and #3029 and cleans-up bar/cross_trace_calc.js a little bit.

Note that commits c14ad69 and b18669d should help if we ever decide to take another shot at making trace attribute visible an editType:'plot' (currently it is a calc, cc #2837, #2849)

cc @plotly/plotly_js - best to review this thing commit-by-commit.

- 🔪 2-line gaps
- consistently call items of `gd.calcdata` -> `calcTraces` in
this file!
... and use that option to inherit `tozero`
for errorbar findExtremes() call. Update to exiting mocks
that were showing wrong behavior.
... this way we can 🔪 min/max logic in Bar.crossTraceCalc
which is already done during Axes.getAutoRange.
@etpinard

Copy link
Copy Markdown
ContributorAuthor

@archmoj / @antoinerg anyone of you want to take a shot at reviewing this?

It's the last PR I'd like included in 1.44.0, I promise 😏

@archmojarchmoj left a comment

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.

Looks robust.
I unsuccessfully tried to break it.
Please find my comment below.

Comment threadtest/image/mocks/bar_autorange-above-zero-normalized.json
@archmoj

Copy link
Copy Markdown
Contributor

Well done.
💃

@etpinard

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review @archmoj !!

@etpinard
etpinard merged commit e4b1a7e into masterJan 22, 2019
@etpinard
etpinard deleted the bar-errorbar-autorange-fixes branch January 22, 2019 12:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugsomething broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bars with base autorange bug

2 participants

@etpinard@archmoj