All examples By author By category About

GerHobbelt

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

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.