blob: 9621e3fe75204acf0ad00ea9859a5d67f2f9e3b0 [file] [log] [blame]
>>> (indent 4)
selection.callMethod('enter').callMethod('append', ["svg"]).callMethod(
'attr', ["class", "box"]).callMethod('attr', ["width", width])
.callMethod('attr', ["height", height]).callMethod('append', ["g"])
.callMethod(
'attr', ["transform", 'translate(${margin[3]},${margin[0]})'])
.callMethod('append', ["text"]).callMethod('attr', ["class", "label"])
.callMethod('text', [(_, i, __) => groups[i]]);
<<<
selection
.callMethod('enter')
.callMethod('append', ["svg"])
.callMethod('attr', ["class", "box"])
.callMethod('attr', ["width", width])
.callMethod('attr', ["height", height])
.callMethod('append', ["g"])
.callMethod('attr', [
"transform",
'translate(${margin[3]},${margin[0]})',
])
.callMethod('append', ["text"])
.callMethod('attr', ["class", "label"])
.callMethod('text', [(_, i, __) => groups[i]]);