Fundamentals of HTML, SVG, CSS and JavaScript for Data Visualisation
Minimum price
Suggested price

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

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.

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

  • Share this book

  • Categories

    • Web Development
    • Data Science
    • HTML
    • CSS
    • JavaScript
    • Graphics
  • Feedback

    Email the Author(s)

About the Author

Peter Cook
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 two books: Fundamentals of HTML, CSS, SVG & JavaScript for Data Visualisation and D3 Start to Finish.

Peter Cook

Episode 230

Bundles that include this book

Bought separately
Bundle Price

Table of Contents

  • 1 Introduction
    • 1.1 Setting up
    • 1.2 CodePen
    • 1.3 Stay in touch
    • 1.4 Translators
  • 2 Web languages: HTML, SVG, CSS & JavaScript
  • 3 HTML
    • 3.1 Headings
    • 3.2 Lists
    • 3.3 Images
    • 3.4 <div> element
    • 3.5 <svg> element
    • 3.6 Wrapping up
    • 3.7 Exercises
  • 4 SVG
    • 4.1 Adding SVG to a web page
    • 4.2 SVG elements
    • 4.3 SVG Transforms
    • 4.4 Exercises
  • 5 CSS
    • 5.1 The Structure of CSS
    • 5.2 CSS Units
    • 5.3 CSS Properties
    • 5.4 More CSS selectors
    • 5.5 CSS for HTML layout
  • 6 JavaScript
    • 6.1 JavaScript variables
    • 6.2 JavaScript data types
    • 6.3 JavaScript arrays
    • 6.4 JavaScript objects
    • 6.5 JavaScript operators
    • 6.6 JavaScript conditionals
    • 6.7 JavaScript functions
    • 6.8 JavaScript iteration
    • 6.9 JavaScript functions (advanced)
  • 7 Tools and Set-up
    • 7.1 Web development tools
    • 7.2 Example set-up

Other books by this author

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.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

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

In fact, authors have earnedover $12 millionwriting, 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