block by GerHobbelt 2653660

D3.js: click on TEXT node in SVG graph to edit its contents

Full Screen

Experiment …… ? 8

Showcases using a SVG foreignObject to contruct temporary, minimal forms to allow editing of arbitrary D3 data (in this case: titles and subtitles)

** Notes

The code isn’t the cleanest that could be: the ‘blur’ and ‘keypress’ event handlers share copy&pasted code which could be refactored.