All examples By author By category About

clhenrick

D3 Scatterplot without data join

D3 Scatterplot Without Data Join

A somewhat convoluted demo of creating a simple scatterplot using ES6 template literals. The common-tags package is used for its handy html tag function that strips out line breaks and white space from the template literal string.

The point of this example is just to show you don't need to use d3-selection's selection.data().enter().append() methods to render SVG shapes from data.

Built with blockbuilder.org