Chapter 2. Getting Started with D3.js
In this chapter, we will build our first simple scatter plot application using D3.js. Don't worry if you have no experience with D3.js, we will cover all the necessary topics from setting up a simple HTML template, selecting DOM elements, and binding data to DOM elements.
First, you will learn how to draw vector graphics with the use of D3.js. To get started, we will set up a simple D3.js application template that serves for all examples in this chapter.
In the second section, you will learn how to select and modify elements from the DOM and change their attributes and their appearance. Starting with modifying HTML elements, I will answer some common questions to understand the similarities and differences between ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access