News for hackers. Stuff that matters.
Re:What D3.js is Not by danso on Wednesday June 25, 2014 @12:10PM (#7944834)
For web dev beginners, I haven't yet seen a better ramp-up tutorial than Scott Murray's "Interactive Data Visualization", which is free online: http://chimera.labs.oreilly.com/books/1230000000345/

He really emphasizes the low-level at which D3 operates, as you move from creating shapes with divs and CSS, to eventually learning the D3 framework. Here's his section on "What [D3] Doesn't Do": http://chimera.labs.oreilly.com/books/1230000000345/ch02.htm...

Re:What D3.js is Not by allenkim67 on Wednesday June 25, 2014 @03:52PM (#7946382)
This book is very good and I highly recommend it if you're just starting out. But I didn't feel like I really understood how d3 works until I read these two articles by Mike Bostocks himself.

http://bost.ocks.org/mike/selection/

http://bost.ocks.org/mike/join/

IME, understanding joins and selections is essential when using d3.

Re:What D3.js is Not by kalasoo on Wednesday June 25, 2014 @12:20PM (#7944919)
Ya, I read this book in a spare afternoon several weeks ago. Most developers can skip the background/introduction chapters but jump directly to the core (but the basics) of d3.js library.

The author has clearly explained how people misunderstand this library because of the fancy sample list. Moreover, d3 is more likely a data abstraction layer rather than a graphics or plotting tool. It gives an interface to represent the data by SVG graphical components.

Re:What D3.js is Not by jrowley on Wednesday June 25, 2014 @02:08PM (#7945713)
Great rundown. Thank you. Anyone know of a good library for flowcharts in Angular.js?

I found this: http://www.codeproject.com/Articles/709340/Implementing-a-Fl...

It looks pretty handy but doesn't have all the functionality I was looking for.Just thought I'd ask before potentially reinventing the wheel...

Re:What D3.js is Not by simonsarris on Wednesday June 25, 2014 @02:43PM (#7945946)
What do you mean "in" Angular?

I write a diagramming library (GoJS - http://gojs.net/beta) that can work alongisde Angular:

http://www.gojs.net/beta/samples/angular.html

Were you looking for something specific in terms of Angular integration?

Re:What D3.js is Not by jrowley on Wednesday June 25, 2014 @03:44PM (#7946347)
My mistake with the "in" part - I meant to say libraries that work well with Angular.

I actually saw your demo while researching and it more or less what we need, however the software I'm working on is licensed under new BSD and we were hoping to distribute for free.

Looks like an excellent library you've built though. Thanks for replying.

Re:What D3.js is Not by dmarusic16 on Wednesday June 25, 2014 @12:26PM (#7944968)
At the same time, D3 makes all sorts of smart decisions for you when you're making charts with it. I'm always pleasantly surprised, for example, by how D3 picks just the right number of tick marks on axes. Mike Bostock has taste and deep knowledge of how to make good visualizations, and it shows. A similar library made by a less able person would barf out way uglier charts.
Re:What D3.js is Not by trose on Wednesday June 25, 2014 @12:22PM (#7944933)
The author's assertion that D3 doesn't work with Angular is rather fishy seeing as there is a book specifically written about using D3 with Angular: https://leanpub.com/d3angularjs
Re:What D3.js is Not by mcgannon2007 on Wednesday June 25, 2014 @12:31PM (#7945011)
He doesn't assert that it doesn't work with it. Rather, the author states you shouldn't interact heavily with the DOM with both Angular and D3 - choose one to keep things simpler.
Re:What D3.js is Not by grumblestumble on Wednesday June 25, 2014 @03:04PM (#7946103)
The existence of this book, as well as the numerous d3/angular wrapper projects, don't make his assertion 'fishy' - they prove it.
Re:What D3.js is Not by scotty79 on Wednesday June 25, 2014 @12:45PM (#7945131)
I'm kinda surprised that people didn't turn d3 into single page application framework. It has much cooler interface than most of the stuff that flies around these days in that department.
Re:What D3.js is Not by drewda on Wednesday June 25, 2014 @01:32PM (#7945477)
The iD editor for OpenStreetMap is a nice example of how to build a large single-page web application with d3 (and without jQuery, Backbone, or any other large JS libraries): https://github.com/openstreetmap/iD
Re:What D3.js is Not by hnha on Wednesday June 25, 2014 @03:12PM (#7946148)
And sadly really resource intense and thus laggy on all systems I tried it on :/
Re:What D3.js is Not by dsjoerg on Wednesday June 25, 2014 @12:00PM (#7944767)
Thanks for this. I've been telling people that D3 is not a charting library for over a year, but I get the feeling they don't really believe me!
Re:What D3.js is Not by trose on Wednesday June 25, 2014 @12:20PM (#7944918)
its an easy misconception to have. Luckily there are charting libraries written with D3 like nvd3 and rickshaw.
Re:What D3.js is Not by altcognito on Wednesday June 25, 2014 @01:20PM (#7945374)
c3js is also pretty good
Re:What D3.js is Not by smrtinsert on Wednesday June 25, 2014 @12:35PM (#7945041)
It's really a framework masquerading as a library.
Re:What D3.js is Not by pornel on Wednesday June 25, 2014 @01:12PM (#7945319)
To me it feels like data-oriented jQuery.
Re:What D3.js is Not by daemonk on Wednesday June 25, 2014 @12:28PM (#7944981)
D3 is a data binding library. The data, enter, exit cycle is the heart of the library. You can use it to bind data to any DOM elements.
Re:What D3.js is Not by tericho on Wednesday June 25, 2014 @12:17PM (#7944899)
I quickly discovered the same things about SVG/Canvas when I tried to use it for a game board. It was a casual project so I didn't search too hard for other options but I'll take a look at your list you provided. Thanks!
Re:What D3.js is Not by zacharyz on Wednesday June 25, 2014 @12:26PM (#7944961)
D3.js may not itself be a charting library but there are numerous adaptions that make it easy to work with - especially with angular: http://code.shutterstock.com/rickshaw/ http://nvd3.org/
Re:What D3.js is Not by rnbwd on Wednesday June 25, 2014 @12:35PM (#7945049)
d3 is very powerful, has an amazing api, and it's incredible library. but my processor goes insane running trivial d3 animations (macbook pro core-2-duo 2009). with css 3d, webgl, I don't have processor issues, but god-damn the d3 api is one of the best I've ever used for animations
Re:What D3.js is Not by pornel on Wednesday June 25, 2014 @01:14PM (#7945334)
D3 is not tied to SVG at all. I only use it with HTML DOM and CSS 3D properties.
Re:What D3.js is Not by pc86 on Wednesday June 25, 2014 @04:56PM (#7946714)
Is ChartJS still actively developed? No substantive Github changes in a year and the site appears down for me.
Re:What D3.js is Not by webXL on Wednesday June 25, 2014 @06:33PM (#7947145)
No. Not on the original repo. There's plenty of activity on forks, but no solid consensus on a new official repo. See https://github.com/nnnick/Chart.js/issues/356

The site is up for me. IMO http://www.chartjs.org/docs/ is one reason why the library is so popular, despite its lack of interactivity.