This post describes how to build a very basic animation when the barplot is loading. This example works with d3.js v4 and v6
div that will be modified by d3 later on.svg area. It specify the chart size and its margin. Read more.transition() function.