Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Responsive Data Visualization

You're reading from   Learning Responsive Data Visualization Create stunning data visualizations that look awesome on every device and screen resolutions

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher
ISBN-13 9781785883781
Length 258 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Christoph Körner Christoph Körner
Author Profile Icon Christoph Körner
Christoph Körner
Erik Hanchett Erik Hanchett
Author Profile Icon Erik Hanchett
Erik Hanchett
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Responsive Design, Bootstrap, and D3.js FREE CHAPTER 2. Creating a Bar Chart Using D3.js and SVG 3. Loading, Filtering, and Grouping Data 4. Making the Chart Responsive Using Bootstrap and Media Queries 5. Building Responsive Interactions 6. Designing Transitions and Animations 7. Creating Maps and Cartographic Visualizations Using GeoJSON 8. Testing Responsive Visualizations 9. Solving Cross-Browser Issues Index

Chapter 2. Creating a Bar Chart Using D3.js and SVG

In this chapter, you will learn how to create a bar chart, including proper axis and scales—this requires some basic knowledge in D3, which will also be covered here. You will learn the following:

  • How to select and transform DOM elements using D3
  • How to use D3 with SVG elements
  • How to use a data-driven approach to create visualizations
  • How to use data binding and data joins
  • How to use dynamic properties
  • How to draw lines, areas, and arcs
  • How to use scales
  • How to draw axis
  • How to create a bar chart

First, we will start with some simple DOM selections and transformations of HTML elements and continue creating SVG elements using D3. We will also see how to bind data to the DOM and apply data-driven transformations using data joins and dynamic properties.

In the second section, we will see one of the built-in SVG abstractions in D3—the so-called generator functions—especially line, area, and arc generators. These abstractions...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image