liveBook · Manning

JavaScript

As explained in Everyday Data Visualization

JavaScript is a general-purpose programming language widely used for interactive behavior in web browsers and other environments.

JavaScript is a general-purpose language widely used to create interactive behavior in web browsers and data visualizations. Front-end web development is closely associated with JavaScript, whose asynchronous nature can make execution timing difficult to follow. section 1.5.3

For visualization, JavaScript commonly works with D3, a free, open-source library for building data-driven documents. D3 uses SVG, HTML5, and CSS, and can turn a small fruit dataset into a bar chart with roughly 50 lines of code. section 1.5.3

A basic D3 bar chart

A fruit-data bar chart demonstrates how JavaScript and D3 can produce an interactive web visualization; similar work appears in online journalism such as The New York Times. section 1.5.3

Figure 1.9 A basic bar chart created in d3.js
01-09

Inspect the basic D3 bar chart as a concrete example of JavaScript-based visualization. section 1.5.3

How Everyday Data Visualization covers it

How deep it goes
Introduces asynchronous execution and D3-based visualization, but stops short of teaching coding fundamentals.
Examples
Uses a fruit-data bar chart and points to data visualizations published by The New York Times.
What it assumes
Assumes little coding instruction and deliberately leaves programming fundamentals to other resources.
What you can do after
Apply it via D3 to create a basic web-based bar chart.
How it connects
Connects JavaScript with D3, SVG, HTML5, CSS, and asynchronous programming.

Also explained in

Compare how 12 books explain JavaScript →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Everyday Data Visualization. The section links point to the parts of the book it draws on.