This post describes how to build a very basic scatter plot with d3.js. It is also probably one of the most basic plot you can build in d3. You can visit the scatter plot section for more examples. This example works with d3.js v4
and v6
svg
area with margins. Explanation about it here.d3.csv()
function allows to parse the input dataset that is stored on the web. It has 2 numeric variables called GrLivArea
and SalePrice
.linearScale
. Visit this page for more about axis and scales.circle
to the svg.