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

Bar chart resize renders 0 value bars #17387

Closed
kamil-musialowski opened this issue Jun 14, 2022 · 2 comments
Closed

Bar chart resize renders 0 value bars #17387

kamil-musialowski opened this issue Jun 14, 2022 · 2 comments
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur.

Comments

@kamil-musialowski
Copy link
Contributor

kamil-musialowski commented Jun 14, 2022

Expected behaviour

Bars with y: 0 should not be visible at all.

Actual behaviour

Bars with y: 0 are rendered on some specific window widths.

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/8nh9jtac/

  1. Run the demo and observe the first bar render on chart.width: 911
  2. Change the chart.width to 900 and the bars are not rendered.

Product version

Highcharts v10.1.0 (current)

Affected browser(s)

All browsers

@raf18seb
Copy link
Contributor

raf18seb commented Jun 14, 2022

Hi @kamil-musialowski, thanks for reporting a problem.

@TorsteinHonsi would you consider this as a bug?

The column's height is calculated here:

barH = Math.max(plotY, yBottom) - barY,

And after crisping the height is 1 where, in my humble opinion, it should be 0.

@raf18seb raf18seb added this to To do in Development-Flow via automation Jun 21, 2022
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@github-actions github-actions bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Dec 14, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2023
Development-Flow automation moved this from To do to Done Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur.
Projects
Development

No branches or pull requests

3 participants