Book Image

Mastering D3.js

Book Image

Mastering D3.js

Overview of this book

Table of Contents (19 chapters)
Mastering D3.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a Twitter explorer application


In this section, we will create an application to explore the distribution of geotagged tweets at a given time. Users can enter topics in the input box. The topics will be sent to the server-side application, which will begin to send tweets that match the topic to the client-side instance of the corresponding user. This application can be used to track the geographic distribution of a set of topics. For instance, a user might be interested to know which kind of meal is being discussed in different regions of the world, to monitor the Twitter stream for earthquake-related words, or to track the mentions of a particular brand. Our application will support multiple users to be connected at the same time, allowing each user to add up to five topics.

A screenshot of the client application is shown as follows:

Our application will consist of two components, the streaming server and the client-side application. The streaming server will handle the connection...