title: Setting up React in combination with NVD3
body: <p>I am fairly new to React (and front-end work in general). How can I make set up React to work with NVD3?</p>
  <p>Currently I am trying to implement the example code of <a href="https://github.com/NuCivic/react-nvd3" rel="nofollow noreferrer">react-nvd3</a>, but get the following error thrown by the d3 function d3.transform():</p>
  <blockquote>
  <p>Unexpected value translate(145, NaN) parsing transform attribute.</p>
  <p>g.setAttribute(&quot;transform&quot;, string);</p>
  </blockquote>
  <p>My code is as follows:</p>
  <pre><code>var TestData = [{
      key: &quot;Cumulative Return&quot;,
      values: [
          {
              &quot;label&quot; : &quot;A&quot; ,
              &quot;value&quot; : -29.765957771107
          } ,
          {
              &quot;label&quot; : &quot;B&quot; ,
              &quot;value&quot; : 0
          } ,
          {
              &quot;label&quot; : &quot;C&quot; ,
              &quot;value&quot; : 32.807804682612
          } ,
          {
              &quot;label&quot; : &quot;D&quot; ,
              &quot;value&quot; : 196.45946739256
          } ,
          {
              &quot;label&quot; : &quot;E&quot; ,
              &quot;value&quot; : 0.19434030906893
          } ,
          {
              &quot;label&quot; : &quot;F&quot; ,
              &quot;value&quot; : -98.079782601442
          } ,
          {
              &quot;label&quot; : &quot;G&quot; ,
              &quot;value&quot; : -13.925743130903
          } ,
          {
              &quot;label&quot; : &quot;H&quot; ,
              &quot;value&quot; : -5.1387322875705
          }
      ]
  }];
  
  var App = React.createClass({
      render: function() {
          return (
                  &lt;NVD3Chart id=&quot;chart&quot; type=&quot;discreteBarChart&quot; datum={TestData} x=&quot;test&quot; y=&quot;test&quot;/&gt;
          );
      }
  });
   
  ReactDOM.render(
      &lt;App/&gt;,
      document.getElementById('container')
  );
  </code></pre>
  <p>See <a href="https://jsfiddle.net/x2wuko8g/2/" rel="nofollow noreferrer">https://jsfiddle.net/x2wuko8g/2/</a> I guess it has to do something with the format of TestData, but can't figure it out.</p>
  <p>Help is much appreciated!</p>