Book Image

Interactive Data Visualization with Python - Second Edition

By : Abha Belorkar, Sharath Chandra Guntuku, Shubhangi Hora, Anshu Kumar
Book Image

Interactive Data Visualization with Python - Second Edition

By: Abha Belorkar, Sharath Chandra Guntuku, Shubhangi Hora, Anshu Kumar

Overview of this book

With so much data being continuously generated, developers, who can present data as impactful and interesting visualizations, are always in demand. Interactive Data Visualization with Python sharpens your data exploration skills, tells you everything there is to know about interactive data visualization in Python. You'll begin by learning how to draw various plots with Matplotlib and Seaborn, the non-interactive data visualization libraries. You'll study different types of visualizations, compare them, and find out how to select a particular type of visualization to suit your requirements. After you get a hang of the various non-interactive visualization libraries, you'll learn the principles of intuitive and persuasive data visualization, and use Bokeh and Plotly to transform your visuals into strong stories. You'll also gain insight into how interactive data and model visualization can optimize the performance of a regression model. By the end of the course, you'll have a new skill set that'll make you the go-to person for transforming data visualizations into engaging and interesting stories.
Table of Contents (9 chapters)

Interactive Temporal Visualization

We have so far seen how to manipulate temporal data and create static plots. Now, we need a visualization that can be rendered at runtime based on events and information details – an interactive plot in which the events could be zoom, hover, change of axis, 3D rotations, and more. Information details could be changing the aggregation column from year to month or days.

Now we will explain how to plot using the Bokeh library. First, we will plot a simple plot. At the end, we will learn about callbacks and the sophisticated functionalities of Bokeh.

Bokeh Basics

Bokeh is an interactive visualization library. It is able to handle large amounts of data and streaming data as well. Apart from Python, Bokeh can be used with R, Scala, Lua, and other programming languages.

For a simple graph, many interactivity tools come built-in with Bokeh, for example, pan, box zoom, and wheel zoom. Since we will be visualizing our output in a Jupyter...