title: Can an SVG pattern be implemented in D3?
body: <p>I tried:</p>
  
  <pre><code>var pattern = d3.select("#container").append("svg:pattern");
  pattern.append("svg:defs") ... //and so on
  </code></pre>
  
  <p>but ran into errors on <code>append("svg:pattern")</code> so I assume that is not implemented in d3 yet.  </p>
  
  <p>My solution was to simply run the SVG code outside of d3 which worked fine since I did not need the power of d3 for this piece. (I realized I could have attached a .data(dataset) to an SVG object and looped through it to create it, but that would have been a lot of d3 effort for no reason.)</p>
  
  <p>This is a sanity-check question: Did I miss something in trying to implement an svg pattern in d3, or was my solution the correct approach?</p>
  
  <p>(Thank you <strong>Mike Bostock</strong> for such an incredible library.)</p>