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

When the difference between y-axis values are too high the bar chart isn't shown. #874

Closed
cauemarcondes opened this issue Oct 19, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@cauemarcondes
Copy link

Describe the bug
A bucket is not shown when the difference between the y-axis is too big.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout my branch [APM] Transition to Elastic charts for all relevant APM charts kibana#80298
  2. Start kibana
  3. Navigate to APM
  4. Select any service
  5. Select any transaction
  6. Check the Transactions duration distribution chart.

Expected behaviour
The chart should show a bucket even when the value is small.

Screenshots
Screenshot 2020-10-19 at 16 25 31

Screenshot 2020-10-19 at 16 25 58

Version (please complete the following information):

  • Elastic Charts: 23.2.1

Kibana Cross Issues
elastic/kibana#80298

@cauemarcondes cauemarcondes added the bug Something isn't working label Oct 19, 2020
@nickofthyme
Copy link
Collaborator

nickofthyme commented Oct 19, 2020

@cauemarcondes I think using the minBarHeight might solve your issue. This applies a minimum bar height in px for non-zero and non-null values. See #443. We are currently doing this in discover see elastic/kibana#69875.

Something like...

<BarSeries minBarHeight={2} /* other props */ />

Without setting the minBarHeight the height of the bar will always use the scaled value.

@cauemarcondes
Copy link
Author

That's what I needed. Thanks for the fast reply @nickofthyme

@nickofthyme
Copy link
Collaborator

Perfect, you are most welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants