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

Line annotations on single value scale not appearing in correct position in histogram mode #262

Closed
2 tasks done
emmacunningham opened this issue Jul 8, 2019 · 1 comment · Fixed by #265
Closed
2 tasks done
Assignees
Labels
:annotation Annotation (line, rect, text) related issue bug Something isn't working released Issue released publicly

Comments

@emmacunningham
Copy link
Contributor

Describe the bug
x-axis line annotations for a single value scale in histogram mode are not correctly positioned, aligning with the leftmost tick along the x-axis.

To Reproduce
Steps to reproduce the behavior:

  1. Create histogram series with only one data value with x value 0
  2. Add line annotation at 0.5
  3. See line annotation positioned at 0

Expected behavior
Should appear correctly aligned with data value's position along x-axis

Screenshots
Incorrect placement of 0.5 annotation when only 1 value (should be in center but is aligned with 0 tick:
image

Correct placement of 0.5 annotation when more than 1 value:
image

Version (please complete the following information):

  • OS: all
  • Browser: all
  • Elastic Charts: 7.2.0

Additional context

Errors in browser console
none

Kibana Cross Issues

Checklist

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
@emmacunningham emmacunningham added bug Something isn't working :annotation Annotation (line, rect, text) related issue labels Jul 8, 2019
@emmacunningham emmacunningham self-assigned this Jul 8, 2019
@markov00
Copy link
Member

🎉 This issue has been resolved in version 8.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:annotation Annotation (line, rect, text) related issue bug Something isn't working released Issue released publicly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants