4 ms·
Consider this example: https://square.github.io/crossfilter/#charts https://square.github.io/crossfilter/#charts and this example https://dc-js.github.io/dc.js/
by zenocon 12y ago
Consider this example: https://square.github.io/crossfilter/#charts https://square.github.io/crossfilter/#charts and this example https://dc-js.github.io/dc.js/#yearly-bubble-chart https://dc-js.github.io/dc.js/#yearly-bubble-chart -- sure, you could probably do this without dc.js and crossfilter.js but it would be _a lot_ of work, and likely not re-usable.
If you don't need interactive charts that you can drill-down into, don't use it. If you do, this is the best of breed right now for this kind of thing. dc.js doesn't abstract away the d3 api -- you can still use it to your hearts content, but it sure makes these kinds of examples really easy to spin up with minimal code.
- magicalist 12y agoI think you're missing the parent's point, at least in your first sentence. They said they could just use d3 and crossfilter instead of dc.js (which is exactly what your first example is doing, no dc.js there). Your second paragraph appears to be the answer to their question, however. dc.js looks like it provides higher level constructs, so you're joining data to a bar chart, not data to a series of rectangles that you need to then make into a bar chart. That's great for people that don't have the time or inclination to learn d3, and since it sounds like you can still get access to the full d3 API, it sounds like it could be useful to people that do know d3, as it would give them good starting points for a bunch of types of graphs that they could then tweak at will.