Comments (12)
Would it be possible to see this as a Fiddle so that I can see the issue in action?
Thanks!
from d4.
@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 x
in graphData
array. You can look at final graph @ http://brackets-rating.herokuapp.com/
from d4.
Hey @dnbard I've started a fiddle example for you, can you flesh it out for me?
from d4.
I've added data to your fiddle http://jsfiddle.net/558hQ/1/ It still miss one bar.
Also, you can remove any number of objects in window.data
array to watch that graph to see different missing bars.
from d4.
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.
from d4.
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.
from d4.
It works this way. Still I don't understand what is wrong with loop in my example?
from d4.
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.
from d4.
@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.
from d4.
Can i use the CDNs for d3.js
and d4.js
from that Fiddle in my projects ?
from d4.
@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.
from d4.
@heavysixer ok, I'll stick with stable version of libraries.
from d4.
Related Issues (20)
- Waterfall charts do not respect min/max of the chart domain.
- Dual-axis capability on a basic chart HOT 10
- Transitions broken on the donut chart example HOT 1
- Scales shouldn't auto-nice without an option to prevent it HOT 1
- Method to change stack order of elements HOT 7
- Better series indexing HOT 10
- Add Padding method make distinct from Margin HOT 8
- Dual-axis capability breaks when using groupedColumnSeries HOT 6
- Negative label values are not displayed properly
- Refactor as node module HOT 7
- API or documentation for scale nicing HOT 9
- Attempt to make the svg more responsive to resizing
- d4.js:1172 Uncaught ReferenceError: d4 is not defined HOT 3
- License Missing HOT 1
- Throws reference error when using Browserify (assuming will also throw error with other bundlers?) HOT 2
- Cannot read property 'ordinal' of undefined HOT 12
- missing [week,hour,0] data result wrong graph for punch-card example
- [enhance] add line for punch-card
- wrong order punch-card data result wrong graph for punch-card example
- Example links in documentation are broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d4.