title: How to update the fill color on existing svg elements with d3.js?
body: <p>So i'm trying to make a map from an .svg file I produced with Illustrator because it's a map of the Netherlands with not so straightforward regions.</p>
  
  <p>All the regions have their own #ID.</p>
  
  <p>Now i'm trying to color each region according to their value in the dataset. I can force color on the regions by CSS ive done so on one region but thats obviously not good solution.</p>
  
  <p>If I for example try to select(#id) and then change the .attr("fill","red"); it doesnt work.</p>
  
  <p>How would I update region colors by id using d3.js according to the d[1] value in the dataset ?</p>
  
  <p>Files: <a href="https://gist.github.com/gordonhatusupy/9466794">https://gist.github.com/gordonhatusupy/9466794</a></p>
  
  <p>Live link: <a href="http://www.gordonjakob.me/regio_map/">http://www.gordonjakob.me/regio_map/</a></p>