Moved to directive with d3 loaded in. Used attributes to style cards using CSS3