Leanpub Header

Skip to main content

Fundamentals of HTML, SVG, CSS and JavaScript for Data Visualisation

Learn the fundamentals of HTML, SVG, CSS and JavaScript for building data visualisations on the web.

Ideal if you're wanting to learn D3.js or you use Python and/or R and wish to get started with HTML, SVG, CSS and JavaScript. Straight to the point with lots of code examples.

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
187
Readers
129
Pages
About

About

About the Book

This book covers the fundamentals of HTML, SVG, CSS and JavaScript for visualising data.

If you're wanting to learn D3.js (or other JavaScript visualisation libraries) and need to get up to speed with HTML, SVG, CSS and JavaScript, this book is ideal. It goes through the basics of these languages, and gives a good foundation for learning libraries such as D3.js.

It's also useful if you're coming from a language such as Python or R and use tools such as Dash and Shiny. If you're wanting to customise your web applications and CSS and JavaScript are a stumbling block then this book should help.

This book doesn’t assume prior knowledge of HTML, SVG, CSS and JavaScript but it’ll be helpful if you’ve some coding experience. Being familiar with a text editor (or IDE) will also be helpful.

It’s by no means a comprehensive tutorial on HTML, SVG, CSS and JavaScript. You’d need a much bigger book for that. Think of this book as presenting the minimum of what you ought to know if you’re wanting to work with web based data visualisations.

The book covers topics such as:

  • HTML elements such as headings, lists, images and dropdown menus
  • SVG elements such as lines, rectangles, circles, groups and paths
  • SVG transforms (including how to combine them)
  • CSS rules
  • CSS properties for HTML and SVG
  • CSS id and class attributes
  • CSS layout (including Flexbox)
  • CSS media queries
  • JavaScript variables and data types
  • JavaScript arrays and objects
  • JavaScript functions
  • JavaScript iteration
  • JavaScript promises
  • JavaScript in the browser (Document Object Model or DOM)
  • JavaScript data requests
  • Node.js
  • ES Modules
  • Creating a web application using Vite

This book is an ideal foundation for D3 Start to Finish.

Price

Pick Your Price...

Minimum price

$15.00

$25.00

You pay

$25.00

Author earns

$20.00
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 1)

1
The author will earn $12.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Peter Cook

Peter Cook has built data visualisations for Carbon Tracker, London Datastore and McGraw Hill Education. He currently works as a senior visualisation developer at Flourish and also writes about the how-to of data visualisation for Create With Data.

He's run training courses for clients such as the BBC and The Economist and written data visualisation tutorials for Flowing Data and Creative Bloq. He created D3 in Depth and Create With Data.

He's the author of four books: Visualising Data with JavaScript, Data Dashboards with JavaScript, D3 Start to Finish and Fundamentals of HTML, CSS, SVG & JavaScript for Data Visualisation.

Leanpub Podcast

Episode 230

An Interview with Peter Cook

Contents

Table of Contents

1Introduction

  1. 1.1Setting up
  2. 1.2CodePen
  3. 1.3Stay in touch
  4. 1.4Translators

2Web languages: HTML, SVG, CSS & JavaScript

3HTML

  1. 3.1Headings
  2. 3.2Lists
  3. 3.3Images
  4. 3.4<div> element
  5. 3.5Dropdown menus
  6. 3.6<svg> element
  7. 3.7Wrapping up
  8. 3.8Exercises

4SVG

  1. 4.1Adding SVG to a web page
  2. 4.2SVG elements
  3. 4.3SVG Transforms
  4. 4.4Exercises

5CSS

  1. 5.1The Structure of CSS
  2. 5.2CSS Units
  3. 5.3CSS Properties
  4. 5.4More CSS selectors
  5. 5.5CSS for HTML layout
  6. 5.6Media queries

6JavaScript

  1. 6.1JavaScript variables
  2. 6.2JavaScript data types
  3. 6.3JavaScript arrays
  4. 6.4JavaScript objects
  5. 6.5JavaScript operators
  6. 6.6JavaScript conditionals
  7. 6.7JavaScript functions
  8. 6.8JavaScript iteration
  9. 6.9JavaScript functions (advanced)
  10. 6.10JavaScript advanced concepts

7JavaScript and the Browser

  1. 7.1Document Object Model (DOM) manipulation
  2. 7.2User interaction
  3. 7.3Data requests

8Node.js

  1. 8.1Installing Node.js
  2. 8.2Writing a program
  3. 8.3Node packages

9JavaScript modules

  1. 9.1CommonJS (Node.js)
  2. 9.2ES Modules (the new standard)

10Tools and Set-up

  1. 10.1Web development tools
  2. 10.2Example set-up

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub