D3.js: what is ‘g’ in .append(“g”) D3.js code?

It appends a ‘g’ element to the SVG. g element is used to group SVG shapes together, so no it’s not d3 specific.

Leave a Comment