Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Mastering D3.js

You're reading from   Mastering D3.js Bring your data to life by creating and deploying complex data visualizations with D3.js

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher Packt
ISBN-13 9781783286270
Length 352 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Pablo NAVARRO CASTILLO Pablo NAVARRO CASTILLO
Author Profile Icon Pablo NAVARRO CASTILLO
Pablo NAVARRO CASTILLO
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Data Visualization FREE CHAPTER 2. Reusable Charts 3. Creating Visualizations without SVG 4. Creating a Color Picker with D3 5. Creating User Interface Elements 6. Interaction between Charts 7. Creating a Charting Package 8. Data-driven Applications 9. Creating a Dashboard 10. Creating Maps 11. Creating Advanced Maps 12. Creating a Real-time Application Index

Using the package in other projects


In this section, we will create a minimal web page that uses the windmill package. We begin by creating an empty directory, initializing the repository, and creating a README.md file. We create the bower.json file using bower init. We will install bootstrap to use it in our web page:

$ bower install --save bootstrap

This will download bootstrap and its dependencies to the bower_components directory. We will install the windmill library using the Git endpoint of the repository:

$ bower install --save https://github.com/pnavarrc/windmill.git

This will download the current version of windmill and the version of D3 on which windmill depends. The contents of the bower_components directory are as follows:

bower_components/
   bootstrap/
   d3/
   jquery/
   windmill/

In the index page, we will display the average wind speed in a certain city during 2013. We will store the data in the wind.csv file located in the data directory. The CSV file has three columns that...

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