Book Image

Learning Python Data Visualization

By : Chad R. Adams
Book Image

Learning Python Data Visualization

By: Chad R. Adams

Overview of this book

<p>The best applications use data and present it in a meaningful, easy-to-understand way. Packed with sample code and tutorials, this book will walk you through installing common charts, graphics, and utility libraries for the Python programming language.</p> <p>Firstly you will discover how to install and reference libraries in Visual Studio or Eclipse. We will then go on to build simple graphics and charts that allow you to generate HTML5-ready SVG charts and graphs, along with testing and validating your data sources. We will also cover parsing data from the Web and offline sources, and building a Python charting application using dynamic data. Lastly, we will review other popular tools and frameworks used to create charts and import/export chart data. By the end of this book, you will be able to represent complex sets of data using Python.</p>
Table of Contents (16 chapters)
Learning Python Data Visualization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Why use pygal?


In the world of Python development, there are many libraries for charts (Matplotlib and Plotly being a few examples), and cookbook-style books have been written for many of them. Since this is an introduction to data charting, we need a simple, easy-to-use library where developers new to Python charting, or Python charting in general, could easily take code from this book and build Python applications. The following screenshot shows the pygal website with some chart examples:

This is where pygal comes in; pygal (http://pygal.org/) is a Python-based SVG Charts Creator, developed by the Kozea Community (http://community.kozea.fr/), as shown in the following screenshot. This is a group dedicated to building quality open source libraries (mainly Python based, but for HTML5 projects as well).

The pygal library offers multiple charting options beyond what I consider standard charts: bar charts, line charts, and pie graphs. It includes a world map, funnel charts, radar charts, and...