Skip to content

Commit

Permalink
[guide] Fix 19.6 example code
Browse files Browse the repository at this point in the history
  • Loading branch information
dancerphil authored and ljharb committed Mar 24, 2021
1 parent 730b749 commit 0cf78ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2619,7 +2619,7 @@ Other Style Guides
// good
const leds = stage.selectAll('.led').data(data);
const svg = leds.enter().append('svg:svg');
svg.classed('led', true).attr(width', (radius + margin) * 2);
svg.classed('led', true).attr('width', (radius + margin) * 2);
const g = svg.append('svg:g');
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
```
Expand Down

0 comments on commit 0cf78ac

Please sign in to comment.