Book description
Create Beautiful Visualizations that Free Your Data to Tell Powerful Truths
“The depth of Barrett Clark’s
knowledge shines through in his writing: clear, concise, and
confident. Barrett has been practicing all of this stuff in his day
job for many years–Postgres, D3, GIS, all of it. The
knowledge in this book is real-world and
hard-earned!”
–From the Foreword by Obie
Fernandez
Data Visualization Toolkit is your hands-on, practical, and holistic guide to the art of visualizing data. You’ll learn how to use Rails, jQuery, D3, Leaflet, PostgreSQL, and PostGIS together, creating beautiful visualizations and maps that give your data a voice and to make it “dance.”
Barrett Clark teaches through real-world problems and examples developed specifically to illuminate every technique you need to generate stunningly effective visualizations. You’ll move from the absolute basics toward deep dives, mastering diverse visualizations and discovering when to use each. Along the way, you’ll build three start-to-finish visualization applications, using actual real estate, weather, and travel datasets.
Clark addresses every component of data visualization: your data, database, application server, visualization libraries, and more. He explains data transformations; presents expert techniques in JavaScript, Ruby, and SQL; and illuminates key concepts associated with both descriptive statistics and geospatial data. Throughout, everything is aimed at one goal: to help you cut through the clutter and let your data tell all it can.
This guide will help you
Explore and understand the data visualization technology stack
Master the thought process and steps involved in importing data
Extract, transform, and load data in usable, reliable form
Handle spotty data, or data that doesn’t line up with what your chart expects
Use D3 to build pie and bar charts, scatter and box plots, and more
Work effectively with time-series data
Tweak Ruby and SQL to optimize performance with large datasets
Use raw SQL in Rails: window functions, subqueries, and common table expressions
Build chord diagrams and time-series aggregates
Use separate databases or schema for reporting databases
Integrate geographical data via geospatial SQL queries
Construct maps with Leaflet and Rails
Query geospatial data the “Rails way” and the “raw SQL way”
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Dedication Page
- Contents
- Foreword
- Preface
- Acknowledgments
- About the Author
-
Part I: ActiveRecord and D3
- Chapter 1. D3 and Rails
- Chapter 2. Transforming Data with ActiveRecord and D3
-
Chapter 3. Working with Time Series Data
- Historic Daily Weather Data
- Weather Rails App
- Simple Line Graph
- Tweak 1: Simple Multiline Graph
- Tweak 2: Add Circle to Highlight the Maximum Temperature
- Tweak 3: Add Circle to Highlight the Minimum Temperature
- Tweak 4: Add Text to Display the Temperature Change
- Tweak 5: Add a Line Between the Focus Circles
- Summary
- Chapter 4. Working with Large Datasets
-
Part II: Using SQL in Rails
- Chapter 5. Window Functions, Subqueries, and Common Table Expression
- Chapter 6. The Chord Diagram
- Chapter 7. Time Series Aggregates in Postgres
- Chapter 8. Using a Separate Reporting Database
-
Part III: Geospatial Rails
- Chapter 9. Working with Geospatial Data in Rails
- Chapter 10. Making Maps with Leaflet and Rails
- Chapter 11. Querying Geospatial Data
- Afterword
- Appendix A. Ruby and Rails Setup
- Appendix B. Brief Postgres Overview
- Appendix C. SQL Join Overview
- Index
- Code Snippets
Product information
- Title: Data Visualization Toolkit: Using JavaScript, Rails™, and Postgres to Present Data and Geospatial Information
- Author(s):
- Release date: August 2016
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134465159
You might also like
book
Rails, Angular, Postgres, and Bootstrap, 2nd Edition
Achieve awesome user experiences and performance with simple, maintainable code! Embrace the full stack of web …
book
Ruby Data Processing: Using Map, Reduce, and Select
Gain the basics of Ruby’s map, reduce, and select functions and discover how to use them …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
book
Web Database Applications with PHP and MySQL, 2nd Edition
There are many reasons for serving up dynamic content from a web site: to offer an …