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

Add domain fit option for 0 opacity tsvb line charts #54314

Merged
merged 2 commits into from Jan 9, 2020

Conversation

nickofthyme
Copy link
Contributor

@nickofthyme nickofthyme commented Jan 8, 2020

Summary

Adds fitting to 0 opacity TSVB "line" charts. Area charts, with non-zero opacity, will continue to have a zero baseline but "line" chart will fit the domain to the data.

Data min/max data close to zero, but not over, will use 0 as a baseline rather than the calculated min based on 1/12 * yDomain padding

Fixes #53257
Related to elastic/elastic-charts#510

Demo

Notice the difference between the 50% opacity and 0% opacity series.

Screen Recording 2020-01-08 at 05 37 PM

Checklist

For maintainers

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

LGTM.
I didn't run this locally since the giff shows it works nicely!

@nickofthyme nickofthyme merged commit 73c3e53 into elastic:master Jan 9, 2020
@nickofthyme nickofthyme deleted the fix/tsvb-min-y-value branch January 9, 2020 20:29
nickofthyme added a commit to nickofthyme/kibana that referenced this pull request Jan 9, 2020
…4314)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline
dgieselaar pushed a commit to ogupte/kibana that referenced this pull request Jan 10, 2020
…4314)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline
nickofthyme added a commit that referenced this pull request Jan 10, 2020
) (#54402)

* [TSVB] Add domain fit option to 0 opacity tsvb line charts (#54314)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline

* remove erroneous @elastic/apm-rum dependency
nickofthyme added a commit to nickofthyme/kibana that referenced this pull request Jan 10, 2020
…4314)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline
nickofthyme added a commit that referenced this pull request Jan 11, 2020
…54517)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline
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.

TSVB Yaxis min value defaults to zero - Data binding not working with filter
3 participants