title: D3 adding text lables to horizontal stacked barchart
body: <p>Hi Thanks to FernOfTheAndes for answering this. I have another query. Please see FIDDLE and original question below. </p>
  
  <p>My question is, how do I add text labels to the example below. Ideally I would like the values to be displayed in the rectangles. However, for stacked bar graphs the process seems to be different in that, nested array information doesn't seem to be picked up.</p>
  
  <p>For example </p>
  
  <pre><code>var dataset = [
  [{
      x: 0,
      y: 20 // test with different values
  }],
  [{
      x: 0,
      y: 30 // test with different values
  }],
  
  [{
      x: 0,
      y: 50 // test with different values
  }]
  </code></pre>
  
  <p>];</p>
  
  <p>How do I get 20, 30 , 50 to be displayed in their respective rectangles?</p>
  
  <p>Grateful if someone could update the FIDDLE or paste the full code of what I need to do in order to add the text labels.</p>
  
  <p>Original code below:
  <a href="https://stackoverflow.com/questions/23967118/d3-horizontal-stacked-bar-chart-axis-cut-off">D3 Horizontal stacked bar chart axis cut off</a></p>
  
  <p>FIDDLE: http://
  jsfiddle.net/zDkWP/</p>
  
  <p>Many thanks,</p>