title: How to set the size of a d3 symbol?
body: <p>I can't figure out how to set the size of my d3 symbols in this:</p>
  
  <pre><code>        legendRectE
              .append('path')
              .attr("d", d3.svg.symbol().type((d) =&gt; { return d[2] }))
              .style("fill", function (d) {
                  return d[1];
              })
              .attr('stroke', 'black');
  </code></pre>
  
  <p>I tried to use <code>.size()</code> like this, but it didn't work:</p>
  
  <pre><code>        legendRectE
              .append('path')
              .attr("d", d3.svg.symbol().type((d) =&gt; { return d[2] }))
              .style("fill", function (d) {
                  return d[1];
              })
              .attr('stroke', 'black')
              .size(20*20);
  </code></pre>
  
  <p>When I try using <code>.size()</code> like that, I get an error: <code>[ts] Supplied parameters do not match any signature of call target.</code></p>
  
  <p>So how can I set the size of my symbols in this case?</p>