From d85db4da1fb2c993482a090c6f559575b4235e43 Mon Sep 17 00:00:00 2001 From: "T.P. van der Ven" <118564498+thom-vdv@users.noreply.github.com> Date: Sun, 19 Oct 2025 14:25:32 +0200 Subject: [PATCH] Clarify SVG selection in D3 example --- book/features/creating_basic_HTML_elements.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/features/creating_basic_HTML_elements.md b/book/features/creating_basic_HTML_elements.md index 5bedc30..88346f9 100644 --- a/book/features/creating_basic_HTML_elements.md +++ b/book/features/creating_basic_HTML_elements.md @@ -53,7 +53,7 @@ The first few lines of our JavaScript code are simple. To scale our element with var width = vw; // Create the canvas. We will use only part of it for the main plot - var svg = d3.select("#click") // This selects the div + var svg = d3.select("#click") // This selects the svg using its id .attr("width", width) // This defines the canvas' width .attr("height", height) // This defines the canvas' height ``` @@ -853,4 +853,4 @@ Here is the code for the element above in full: -``` \ No newline at end of file +```