Skip to content

Commit 711aeb6

Browse files
kimhanuiljharb
authored andcommitted
[editorial] Complete 19.6 example code (cut in the middle)
Fixes airbnb#2403
1 parent 9c18110 commit 711aeb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,6 +2618,10 @@ Other Style Guides
26182618
26192619
// good
26202620
const leds = stage.selectAll('.led').data(data);
2621+
const svg = leds.enter().append('svg:svg');
2622+
svg.classed('led', true).attr(width', (radius + margin) * 2);
2623+
const g = svg.append('svg:g');
2624+
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
26212625
```
26222626
26232627
<a name="whitespace--after-blocks"></a><a name="18.7"></a>

0 commit comments

Comments
 (0)