Skip to content

Commit 0cf78ac

Browse files
dancerphilljharb
authored andcommitted
[guide] Fix 19.6 example code
1 parent 730b749 commit 0cf78ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ Other Style Guides
26192619
// good
26202620
const leds = stage.selectAll('.led').data(data);
26212621
const svg = leds.enter().append('svg:svg');
2622-
svg.classed('led', true).attr(width', (radius + margin) * 2);
2622+
svg.classed('led', true).attr('width', (radius + margin) * 2);
26232623
const g = svg.append('svg:g');
26242624
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
26252625
```

0 commit comments

Comments
 (0)