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

Artefacts when the Bar Chart's total width isn't wholly divisible by the number of bars. #4

Closed
GregularExpressions opened this issue Jan 29, 2014 · 1 comment
Labels

Comments

@GregularExpressions
Copy link

Nice UIView subclass, exactly what I needed for lots of lightweight bar charts.

I've spotted an issue with the drawing when the Bar Chart's width divided by number of bars isn't a whole number.

E.g. a width of 320 and 12 bars produces (colours for illustration purposes :-) ):

ios simulator screen shot 29 jan 2014 10 56 26

It looks to me like you could maybe add some minor padding logic by detecting remainders with fmodf.

@xhacker
Copy link
Owner

xhacker commented Jan 30, 2014

Thanks, I will investigate this.

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

No branches or pull requests

2 participants