Live data from Hacker News

Dc.js – Dimensional Charting JavaScript Library

dc-js.github.io

21–30 of 40 posts

Re: Dc.js – Dimensional Charting JavaScript Library

#21

Could anyone explain the benefit of using Dc.js vs google charts API or d3.js? Crossfilter seems really cool - but since it's another library, what is it that Dc is offering?

see my post a couple down https://news.ycombinator.com/item?id=7868603

dc.js marries crossfilter.js with d3.js -- that's it in a nutshell.

crossfilter allows you to group and filter your data in-memory very quickly, and potentially for a LOT of data See http://bl.ocks.org/milroc/7032589 for a good intro to crossfilter (launch the demo on slide #39 -- loads 36M flight records).

you likely already know what d3 does. dc.js makes it easy to generate dashboards where the user can interact with the charts (e.g. filter by Q1, Q2...see the NASDAQ example at https://dc-js.github.io/dc.js/)

Re: Dc.js – Dimensional Charting JavaScript Library

#22
post #4

DC.js is great, but ironically it's deep integration with crossfilter makes it much more difficult to use with other d3.js-based charting libraries. A team I am on ended up switching to another charting library and handling the data manipulation and filtering with crossfilter ourselves.

It definitely suffers from the monolithic design that plagues nvd3 and other d3 chart libraries.

Re: Dc.js – Dimensional Charting JavaScript Library

#23
post #19

Are there any commercial offerings that do some of the grunt work for you, like colors and resizing of page, zoom on maps, click to see just one chart, etc? I'd pay for that.

Yes. Tableau, QlikView, and SpotFire all provide this functionality.

Re: Dc.js – Dimensional Charting JavaScript Library

#24
post #19

Are there any commercial offerings that do some of the grunt work for you, like colors and resizing of page, zoom on maps, click to see just one chart, etc? I'd pay for that.

Yes. Tableau, QlikView, and SpotFire all provide this functionality.

No. I meant a commercial version that uses D3.js and is editable by users. I don't want a black box, but i also don't want to spend much time fixing quirks.

For example long text is a problem with charts and svg (in my experience). I'd like to pay for a version that fixes these things.

Re: Dc.js – Dimensional Charting JavaScript Library

#26
post #3

I posted this as I've spent the last month with this library and it has made the creation of a multi tab dashboard a breeze. Once you get your head around http://square.github.io/crossfilter/ and the manipulations you can do with groups, dc.js really makes rendering the data very simple. 1.7 has just been released and 2.0 is 'around the corner'. It's a fantastic library and massive kudos to the people working on it.…

Can you explain what you found were the advantages of it over just using crossfilter and d3? It's not immediately apparent from the page. Is it that it wraps some of the complexities of d3 so you don't have to deal with them?

Re: Dc.js – Dimensional Charting JavaScript Library

#27
post #20

Could anyone explain the benefit of using Dc.js vs google charts API or d3.js? Crossfilter seems really cool - but since it's another library, what is it that Dc is offering?

One reason: Not everyone has access to those services within the firewall, so it's nice to have this as an option.

Just curious why this would be downvoted. I was trying to be helpful.

Re: Dc.js – Dimensional Charting JavaScript Library

#28
post #27
post #20

Earlier quoted context omitted.

One reason: Not everyone has access to those services within the firewall, so it's nice to have this as an option.

Just curious why this would be downvoted. I was trying to be helpful.

Usually on mobile, people try to upvote, but accidentally downvote.

Re: Dc.js – Dimensional Charting JavaScript Library

#29

Could anyone explain the benefit of using Dc.js vs google charts API or d3.js? Crossfilter seems really cool - but since it's another library, what is it that Dc is offering?

Google Charts API is an external resource, and you're limited to the capabilities of that API, whereas d3.js lets you do just about anything you'd want to do with SVG/Canvas & javascript including animations and interactions. The benefits of crossfilter or dc.js over plain d3.js is the layer of abstraction making it easier to use.

Re: Dc.js – Dimensional Charting JavaScript Library

#30
post #24

Earlier quoted context omitted.

Yes. Tableau, QlikView, and SpotFire all provide this functionality.

No. I meant a commercial version that uses D3.js and is editable by users. I don't want a black box, but i also don't want to spend much time fixing quirks. For example long text is a problem with charts and svg (in my experience). I'd like to pay for a version that fixes these things.

Highcharts might be up your alley. Highcharts.com

It's not D3-based, but it's one of the most popular JS charting libraries out there because it's has a well documented API and it's very customizable. We've had a lot of success with it producing visualizations at DataHero.com

D3 is like a paintbrush -- you can make anything with it if you're DaVinci, but it's a very low-level tool so you need to be a master if you want to make anything that's not my drippy kindergarten giraffe drawing.

Post reply on HN