CSCI-4830-002-2014 / challenge-week-8

0 stars 14 forks source link

Issue with d3 and text, composing d3 objects in general #24

Open ianks opened 10 years ago

ianks commented 10 years ago

I made a post on StackOverflow and had some questions:

http://stackoverflow.com/questions/26472294/d3-attach-text-to-circle-such-that-it-has-same-priority-as-circle-object

doubleshow commented 10 years ago

Challenge 2 is designed to show you how to use "g" to group components together so that they are composable. Take a look at the skeleton code. Does this answer your question? Or did you mean to ask something different?

ianks commented 10 years ago

Yes thanks for that. I am also concerned with the idea of reusability in general with d3, and haven't stumbled on the best way to do that yet. I found an interesting article here covering some best practices for reusability:

http://bocoup.com/weblog/reusability-with-d3/