Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Alex Hedley
Alex Hedley
16,381 Points

Replicating explainshell join lines

Hi All,

I've just watched the Treehouse show Episode 57.

They showed us Explain Shell which looks an awesome site.

There is a feature that I would like to borrow where once you have chosen a command the arguments are joined to their explaination. http://explainshell.com/explain/tar?args=xzvf+archive.tar.gz

Is this using http://d3js.org/ and is it easy to replicate?

Would http://bl.ocks.org/mbostock/4063570 be the best example to follow?

I'm a bit rusty on my web design skills and wondered if anyone has done this?

Alex

1 Answer

They are using D3.js but they've done quite a bit of coding to enable them to marry their own markup with the visualization and provide the interactivity they created. What they've done is not trivial and appears to be custom for their use-case so adapting it for your needs might be quite a task. None of the D3.js examples seem very similar to what they've done but I suppose the example you cited is a bit closer than the others.

Alex Hedley
Alex Hedley
16,381 Points

Only a few lines code :p

Thanks