HNHacker News
TopNewBestAskShowJobs

chrtze

1,243 karma · joined November 7, 2014

submissionscomments
chrtze··on Awesome D3
Thanks, Felix ;)
chrtze··on Awesome D3
We wanted to focus more on tools and plugins, not on visualization examples because many resources for that already exist.
chrtze··on The hidden history of SEAL team 6
Sorry, haven't seen that one.
chrtze··on Node.js scraping libraries
I like the code examples for every library presented in the article.
chrtze··on Replacing jQuery with D3
D3 implements many other features like scales and stuff. The two just have some parts in common when it comes to DOM-manipulations and selections.
chrtze··on Replacing jQuery with D3
okay, didnt think of that solution! thx!
chrtze··on Replacing jQuery with D3
Yes you can. Both libraries are based on document.querySelectorAll which has the same selectors as you know them from CSS.
chrtze··on Replacing jQuery with D3
That's true. I am still often missing the shorthand versions if jQuery when working with d3. For example doing something like this:

$('.foo').append('<div class="bar" data-selected="true"/>');

in d3 I have to go the long way:

d3.select('.foo') .append('div') .classed('bar', true) .attr('data-selected', true);

I have recently worked a lot with this plugin https://github.com/gka/d3-jetpack which includes some very nice helper functions!

chrtze··on Replacing jQuery with D3
From my perspective I would rather have $.select() instead of $() because it makes more clear what this function actually does.
chrtze··on Berlin 1945 and Today
There is a similar project on this: http://www.washingtonpost.com/blogs/worldviews/wp/2014/11/06...