-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Ordinal bar chart bars overlap and ticks don't align in 2.0 #533
Comments
Again, @bhatup, would you please link to a short self-contained example? |
Sorry Gordon, Please look into this example. |
Thanks, that is very helpful, and a very simple example which should work. I can confirm this is a regression in 2.0.0, possibly due to the new work on ordinal bar charts. I simplified your example to a simple bar chart, and it still fails: A mostly-equivalent version using 1.6.0 works: I'm changing the issue title accordingly. |
Hello @gordonwoodhull, I have resolved this issue by doing modification in calculateBarWidth() function in dc.js Just added the statement: This statement has been added in dc.1.6.js |
I determined that this is not the right fix. It helps but it just errs the other way. Something is deeply messed up about bar widths. Plan to fix for 2.0 |
Issue raised again at http://stackoverflow.com/questions/24848550/bar-overlapping-in-dc-bar-chart "Bar overlapping in DC bar chart" |
Thanks for linking. Yep this code is seriously screwed up. Maybe I'll hit this next. Also: #593 changing number of bars. |
I think this is possibly the worst bug in dc right now. Just frightening results, yuk. |
I agree its at the top. Just had to work around it Friday. On July 20, 2014 4:10:52 PM CDT, Gordon Woodhull notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
PRs always welcome. My preference is to ditch the custom logic, or use it only when |
As a workaround, use |
next time around, use rangeBounds for all bar charts unless _gap is set |
Hi,
There is issue is composite chart.
There is no proper gap between 2 bars (though specified with .gap(10)). And ticks are not in center of bars.
The text was updated successfully, but these errors were encountered: