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

Ensure chart elements don't exceed maximum available width #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgiehl
Copy link
Contributor

@sgiehl sgiehl commented Nov 9, 2022

I'm not sure if this fix is the optimal solution. But since #20 we have a small regression in our generated sparklines.
For reference see matomo-org/matomo#18863

It seems the ceil that was added now causes that the chart elements that are generated exceed the maximum width.
The provided fix should ensure, that the last element doesn't exceed the available width.

For our case this seems to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant