This post extends the previous correlogram with scatterplot. It shows how to add histograms on the diagonal to describe the distribution of every numerical variable. See more examples in the correlogram section. This example works with d3.js v4
and v6
var1 == var2
in the loop -> when I'm on the diagonal.