It’s in fact very easy to use D3.js in a Hugo blog post.

First, we need to insert the link to the latest release of D3 :

Put the above code anywhere in your blog post.

Then, we can create a div to contain the visualization:

<div …