The Wayback Machine - https://web.archive.org/web/20200920191057/https://github.com/uber/react-vis/issues/1121
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

Hint not displaying in correct location in ordinal bar chart #1121

Open
codingarmadillo opened this issue Mar 10, 2019 · 1 comment
Open

Hint not displaying in correct location in ordinal bar chart #1121

codingarmadillo opened this issue Mar 10, 2019 · 1 comment

Comments

@codingarmadillo
Copy link

@codingarmadillo codingarmadillo commented Mar 10, 2019

When I try to display a hint in an ordinal bar chart, I only seem to get a sensible location for the first bar.

Here's a codepen that shows the problem.

https://codepen.io/anon/pen/PLjrGg

The position is completely off when I try to display it using storybook. It's not even on the chart.

@codingarmadillo
Copy link
Author

@codingarmadillo codingarmadillo commented Mar 10, 2019

Actually, I think the example in my codepen is OK---it's just the left/right offsets at play. However, there was a problem in my app and Storybook.

Seems like if I set the XYPlot to have "position: relative" (via it's className) then it fixes the problem I was having. Not sure if that the best approach, but seems to be working for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.