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

First Item of Bar Chart Does Not Appear for Certain Widths When Border Radius is Enabled #4435

Open
Thimows opened this issue Apr 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Thimows
Copy link

Thimows commented Apr 26, 2024

Description

The first item of the bar chart does not seem to appear for certain widths. The value is there, even on the tooltip, but the bar does not show. When I set the Border Radius to 0 it seems to work again:

 2024-04-26 om 10 54 44

Steps to Reproduce

  1. Visit the my codepen example: https://codepen.io/thimows/pen/BaEbdmW
  2. You will see that the first bar does not show.
  3. Set the border radius to 0 under plotOptions and it will show up again.

Reproduction Link

You can see a reproducible example here: https://codepen.io/thimows/pen/BaEbdmW

@Thimows Thimows added the bug Something isn't working label Apr 26, 2024
@Thimows
Copy link
Author

Thimows commented Apr 26, 2024

To follow up, this seems to be caused by a borderRadius and a columnWidth of 100%. Changing the columnWidth to 99% seems to fix it. Maybe there is a small edge case here that is not accounted for?

@LeoMcH36
Copy link

Adding to this because I am having similar issues with column width 100% and bar charts, for me however I am not using border radius. Reducing column width helped fix my issues but the issue only occurred with 3 data points but was fine for 4 which was strange. Also the first bar seems to be showing fine in your reproduction link

The issue I mentioned is here
https://codepen.io/rogueDovah/pen/GRLeVaN

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