Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn D3.js

You're reading from   Learn D3.js Create interactive data-driven visualizations for the web with the D3.js library

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781838645571
Length 650 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Helder da Rocha Helder da Rocha
Author Profile Icon Helder da Rocha
Helder da Rocha
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Technical Fundamentals 3. Quick Start 4. Data Binding 5. Manipulating Data and Formatting 6. Scales, Axes, and Colors 7. Shape and Layout Generators 8. Animation and Interactivity 9. Visualizing Hierarchical Data 10. Visualizing Flows and Networks 11. Visualizing Geographical Data 12. Other Books You May Enjoy

Text formatting and internationalization

The way numbers are represented internally is seldom useful for human consumption. Large numbers are hard to read, currency is limited to two digits after the decimal point, and simple operations can easily result in undisplayable numbers such as 0.7000000000000001.

Formatting tools allow numbers to be displayed as strings, formatted according to a template. But culture also influences how dates and numbers are represented. Many countries use commas as decimal points, and dots as thousands separators. A date represented as 3/6/2019 may refer to March 6, 2019 or to June 3, 2019, depending on the country where you read it. The d3-format and d3-time-format modules, which are both part of the default bundle, deal with these issues with functions that format and parse dates and numbers by using string templates based on a locale.

...
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 €18.99/month. Cancel anytime