JavaScript Visualizzazione Dati

Quick and Practical Guide to D3.js: Interactive Data Visualizations

D3.js from scratch: SVG, coordinate system, interactive data sources, random points and first browser visualizations.

Course description

Get Started with D3.js: Interactive Data Visualizations in the Browser

Want to create charts and data visualizations that live in the browser, react to data and animate? D3.js is the most powerful JavaScript library for doing so — and this quick guide takes you from the fundamentals to your first working visualizations, without wasting time.

What You'll Learn

  • What D3.js is and when to use it compared to other charting libraries
  • Create the first D3.js project and understand how it interfaces with SVG
  • The SVG coordinate system and mouse interactions (mouseover, mouseout)
  • Detect mouse coordinates on SVG elements in real time
  • Use JavaScript objects as data sources to draw shapes
  • Separate JavaScript code into external files and manage SVG IDs
  • Generate random points in an SVG space
  • Use Range and Map to distribute points with logic
  • Draw polylines from an array of points

Practical from the Start

Every lesson has a working example you can run in the browser. This is not theory: you write code, see the result and understand why it works. It's the right foundation before moving on to bar charts, force graphs and complex visualizations.

Who It's For

JavaScript developers who want to add interactive data visualizations to their projects. Assumes you already know what JavaScript is and how the DOM works.

Lessons list

I'll explain what D3.js is, why it's the most powerful JavaScript library for data visualizations, and when it makes sense to use it over other solutions — a clear starting point before writing your first line of code.

Guarda lezione

Let's build the first D3.js project from scratch — I'll explain what SVG is, how D3 interfaces with the page's DOM, and how to draw the first graphical elements directly in the browser.

Guarda lezione

Let's explore the SVG coordinate system, which works differently than you might expect, and how to handle mouse interactions on elements — I'll show you how to use mouseover and mouseout events to make your visualization reactive.

Guarda lezione

I'll show you how to capture real-time mouse coordinates on an SVG element using D3.js — a fundamental technique for building interactive visualizations that respond to the user's movement.

Guarda lezione

Let's see how to use JavaScript objects as data sources in D3.js to generate dynamic SVG shapes — I'll show you how to draw a series of rectangles from a data array, binding data directly to visuals.

Guarda lezione

I'll show you how to split JavaScript code into an external file in a D3.js project and how to properly manage IDs on SVG nodes — small practices that keep the codebase clean and maintainable as the project grows.

Guarda lezione

I'll show you how to generate random points inside an SVG space with D3.js — a useful technique for dynamically populating visualizations and understanding how to position elements based on runtime-computed values.

Guarda lezione

Let's see how to use Range and Map in D3.js to generate random points with a logical, controlled distribution — the foundation for building scatter plots and point charts that reflect the structure of real data.

Guarda lezione

I'll show you how to draw polylines in D3.js from an array of points — one of the most commonly used techniques for representing data as lines, paths, or trends in SVG, with a practical working example.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.

This course includes

  • Lessons 9
  • Duration 1h 34m
  • Difficulty base
  • Language it
  • Certificate No

Recently viewed