title: font size is not working in my d3.js code
body: <p>i am writing d3.js for generating many charts and graphs.. but when there is no data i am just appending svg a text and writting "no data to display" and assigning some attributes like x y dy etc.. similarly font-size but except font size every thing is working .</p>
  
  <p>why? here is my code </p>
  
  <pre><code>var svg = d3.select(selector).append("svg")
    .attr("width", width + margin.left + margin.right)
    .attr("height", height + margin.top + margin.bottom)
    .append("g")
    .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
  
  if (!data.IssueTrendsDAO.issueTrendList) {
    svg.append("text")
      .attr("font-size","34px")
      .attr("y", 79)
      .attr("x", 40)
      .attr("dy", ".47em")                        
      .style("text-anchor", "start")
      .style("fill", "#004669")
      .style("font-weight", "bold")
      .text("No data to display");
  }
  </code></pre>