Hacker News new | ask | show | jobs
by tel 4808 days ago
Angular + d3 is beautiful. d3 is great but often far too low level and imperative (despite trying quite hard to be declarative). Wrapping d3 manipulations inside of Angular directives gives them a great deal of simplicity.

I find myself creating all kinds of different classes of graphs, parameterizing them on HTML attributes, and dropping them into Angular scopes. With a little bit of careful throttling and $applying you can even get highly interactive d3 graphs.

1 comments

Agreed, Angular and d3 are two of the most beautiful and useful pieces of JS out there. Radian's approach is very inspiring for the ones that use both of these awesome libraries.

But I find it too low level : I don't see the point of manipulating <dot> and <line> directives : is'nt it what SVG does already?

I'd rather use a <barchart> or a <piechart> directive.