Small typo fix in 18.6 'bad'-example.

Function call 'class()' to 'classed()'.
This commit is contained in:
Cihan Bebek
2016-02-21 21:38:33 +02:00
parent f4e94ade2b
commit 50ff33de88

View File

@@ -1710,7 +1710,7 @@ Other Style Guides
.updateCount();
// bad
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
.attr('width', (radius + margin) * 2).append('svg:g')
.attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
.call(tron.led);