-
Notifications
You must be signed in to change notification settings - Fork 46
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
Missing bar in simple collumn graph #20
Comments
Would it be possible to see this as a Fiddle so that I can see the issue in action? Thanks! |
@heavysixer Please take a look http://jsfiddle.net/nbww6/ (I've used d3 and d4 libraries from my server, feel free to change them to some CDN or else if you need) Also it's working fine with different declaration of |
Hey @dnbard I've started a fiddle example for you, can you flesh it out for me? |
I've added data to your fiddle http://jsfiddle.net/558hQ/1/ It still miss one bar. |
Yes, you are right, very strange behavior indeed. I am porting this over to a test case so that I can inspect it closer and figure out what is going on. |
I think it might be the way your for loop is being constructed. Check out the updated example: I am still trying to understand what the difference is between the two, because the for loop you are using looks completely valid. The odd thing is that the x dimension in this case is an ordinal value, which means that its a categorical scale, not based on a linear progression. I am thinking this must have something to do with it. |
It works this way. Still I don't understand what is wrong with loop in my example? |
Yes, I have tracked the bug down and am working on a patch now. It is a coercion bug in how the key accessor is created by default. Will let you know when I've patched it, after I've tested everything again. |
@dnbard Please update your copy of d4 and everything should work nicely for you. Thanks for finding and submitting this bug to me! Your fiddle example should work now too, because its bound to the latest version of d4. |
Can i use the CDNs for |
@dnbard I would not use the d4.js file because it is always bound to the latest master, and that should be considered unstable. I do believe that you can use the d3.js from the CDN but again I am not totally sure. |
@heavysixer ok, I'll stick with stable version of libraries. |
Hello. I'm using d4 and my graph missing one bar:
![example](https://camo.githubusercontent.com/5d224a235aa0b6b959af465e6edb61f0e7e30d9f9c0c37e9a1a5a140a703f1b2/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f646e626172642f666f6c646572732f4a696e672f6d656469612f39303730353337342d353739612d346263392d396436352d6232646664326638373765352f323031342d30372d32385f323130372e706e67)
Still it's present in data model:
![data model](https://camo.githubusercontent.com/ca061449525775f1fac6d345404d41c1f4de2ecaa67e5de45ea84a725b3bbfa8/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f646e626172642f666f6c646572732f4a696e672f6d656469612f66316336653835632d376139322d343035612d623162362d6434393361356361346561352f323031342d30372d32385f323130392e706e67)
Code:
Any help is appreciated ;)
The text was updated successfully, but these errors were encountered: