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

Render bars with a minimum of 1px width #2461

Open
markov00 opened this issue Jun 10, 2024 · 0 comments
Open

Render bars with a minimum of 1px width #2461

markov00 opened this issue Jun 10, 2024 · 0 comments
Labels
enhancement New feature or request :styling Styling related issue :xy Bar/Line/Area chart related

Comments

@markov00
Copy link
Member

There are cases where the computed bar width is too small due to a high number of data points or due to a misconfigured chart.
In this case, the chart can be rendered with a bar width smaller than 1 pixel, causing the canvas fillRect to paint nearly transparent bars due to the subpixel rendering.

I believe we can avoid that by always rendering a minimum of 1px wide bars, in these cases the bars can overlap but at least they are visible.

see elastic/kibana#184744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :styling Styling related issue :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

1 participant