Book Image

Mastering D3.js

By : Pablo Navarro Castillo, Pablo Navarro Castillo
Book Image

Mastering D3.js

By: Pablo Navarro Castillo, Pablo Navarro Castillo

Overview of this book

Table of Contents (19 chapters)
Mastering D3.js
About the Author
About the Reviewers

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 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

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:


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...