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 +```