I've got a D3 app that's less visualization than visual editor, and it's quickly becoming a big mess. Perhaps I'm abusing D3 and should use something else, but I really like D3 so far.
Right now I have model objects that also have some drawing code (like calculating coordinates and paths). The objects aren't homogenous, different objects get drawn differently based on their class, so it's really convenient to keep the drawing code in the model classes.
Is there a better way to handle this?
Thanks.