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 more than 2 is overlapping x-axis #15

Open
irfanr opened this issue Oct 20, 2015 · 1 comment
Open

Bar more than 2 is overlapping x-axis #15

irfanr opened this issue Oct 20, 2015 · 1 comment

Comments

@irfanr
Copy link

irfanr commented Oct 20, 2015

Hi,

I noticed that when I added more than 2 bar, it overlapping the x-axis. Is there any workaround with this?

screenshot from 2015-10-20 21 53 09

@Enibas94
Copy link

Enibas94 commented Feb 4, 2016

Hi,
I had the same problem with a single bar. For me, the bars were displaced upward. Try to replace the line 96 in Chart.Bar.js
old: yAbsolute = this.endPoint + this.calculateYInvertXY(barIndex) - (yHeight / 2),
new: yAbsolute = this.endPoint + this.calculateYInvertXY(barIndex) - (yHeight / this.calculateYInvertXY(datasetCount)),

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

No branches or pull requests

2 participants