Back to Browse

03 Creating Canvas and Plot Objects in D3

72 views
Oct 31, 2024
5:19

Creating canvas and plot objects in D3 (this is one of the more straight-forward tutorials). THERE ARE TWO TYPOS IN THE CODE: line 10: const plot_height = height - margin.top - margin.bottom; line 24: const plot = canvas.append('g').attr("transform", `translate(${margin.left}, ${margin.top})`); These don't actually matter until later in the series, but still. Embarrassing. *Links* An open letter to Mike Bostock: https://anthony-munnelly.com/blog/open_letter_mike_bostock/ D3 homepage: https://d3js.org/getting-started D3 download: https://d3js.org/getting-started About the Iris Dataset: https://en.wikipedia.org/wiki/Iris_flower_data_set Github link: https://github.com/amunnelly/d3-tutorial/tree/main/code/03

Download

0 formats

No download links available.

03 Creating Canvas and Plot Objects in D3 | NatokHD