title: How can I give this radial cluster straight lines instead of curved lines?
body: <p>New to D3 and the documentation isn't so strong so I'm just going of examples, but it is taking too much time. I found a <a href="http://jsfiddle.net/fireatwill6/8ce49omr/64/" rel="nofollow noreferrer">great jsfiddle</a> (<a href="https://stackoverflow.com/questions/20930401/smooth-transitioning-between-tree-cluster-radial-tree-and-radial-cluster-layo">found in this post</a>) using d3 to transition between different embeddings for a network graph. I want to give the graphs straight lines instead of curved lines, and have done so for the tree embedding, but I have no idea how to apply it to the radial cluster option.</p>
  <p>This is the code I added to replace 'diagonal()' in the tree representation to give straight lines instead of curved, not sure how to modify it for radialCluster</p>
  <pre><code>var line = d3.svg.line()
               .x( d =&gt; d.lx )
               .y( d =&gt; d.ly );
  
  function lineData(d){
      var points = [
          {lx: d.source.y, ly: d.source.x},
          {lx: d.target.y, ly: d.target.x}
      ];
      return line(points);
  }
  </code></pre>
  <p>Any help would be greatly appreciated :)</p>
  <p>ps. Why isn't there a way to just transform the location of the nodes (e.g. to form radial cluster) and then use that data simply draw the relations?</p>