Book description
Build web-based, mobile-friendly analytic apps and interactive dashboards with Python
Key Features
- Develop data apps and dashboards without any knowledge of JavaScript
- Map different types of data such as integers, floats, and dates to bar charts, scatter plots, and more
- Create controls and visual elements with multiple inputs and outputs and add functionality to the app as per your requirements
Book Description
Plotly's Dash framework is a life-saver for Python developers who want to develop complete data apps and interactive dashboards without JavaScript, but you'll need to have the right guide to make sure you’re getting the most of it. With the help of this book, you'll be able to explore the functionalities of Dash for visualizing data in different ways.
Interactive Dashboards and Data Apps with Plotly and Dash will first give you an overview of the Dash ecosystem, its main packages, and the third-party packages crucial for structuring and building different parts of your apps. You'll learn how to create a basic Dash app and add different features to it.
Next, you’ll integrate controls such as dropdowns, checkboxes, sliders, date pickers, and more in the app and then link them to charts and other outputs. Depending on the data you are visualizing, you'll also add several types of charts, including scatter plots, line plots, bar charts, histograms, and maps, as well as explore the options available for customizing them.
By the end of this book, you'll have developed the skills you need to create and deploy an interactive dashboard, handle complexities and code refactoring, and understand the process of improving your application.
What you will learn
- Find out how to run a fully interactive and easy-to-use app
- Convert your charts to various formats including images and HTML files
- Use Plotly Express and the grammar of graphics for easily mapping data to various visual attributes
- Create different chart types, such as bar charts, scatter plots, histograms, maps, and more
- Expand your app by creating dynamic pages that generate content based on URLs
- Implement new callbacks to manage charts based on URLs and vice versa
Who this book is for
This Plotly Dash book is for data professionals and data analysts who want to gain a better understanding of their data with the help of different visualizations and dashboards – and without having to use JS. Basic knowledge of the Python programming language and HTML will help you to grasp the concepts covered in this book more effectively, but it’s not a prerequisite.
Table of contents
- Interactive Dashboards and Data Apps with Plotly and Dash
- Contributors
- About the author
- About the reviewer
- Preface
- Section 1: Building a Dash App
- Chapter 1: Overview of the Dash Ecosystem
- Chapter 2: Exploring the Structure of a Dash App
- Chapter 3: Working with Plotly's Figure Objects
- Chapter 4: Data Manipulation and Preparation, Paving the Way to Plotly Express
- Section 2: Adding Functionality to Your App with Real Data
-
Chapter 5: Interactively Comparing Values with Bar Charts and Dropdown Menus
- Technical requirements
- Plotting bar charts vertically and horizontally
- Linking bar charts and dropdowns
- Exploring different ways of displaying multiple bar charts (stacked, grouped, overlaid, and relative)
- Using facets to split charts into multiple sub-charts – horizontally, vertically, or wrapped
- Exploring additional features of dropdowns
- Summary
-
Chapter 6: Exploring Variables with Scatter Plots and Filtering Subsets with Sliders
- Technical requirements
- Learning about the different ways of using scatter plots: markers, lines, and text
- Creating multiple scatter traces in a single plot
- Mapping and setting colors with scatter plots
- Handling over-plotting and outlier values by managing opacity, symbols, and scales
- Introducing sliders and range sliders
- Customizing the marks and values of sliders
- Summary
-
Chapter 7: Exploring Map Plots and Enriching Your Dashboards with Markdown
- Technical requirements
- Exploring choropleth maps
- Utilizing animation frames to add a new layer to your plots
- Using callback functions with maps
- Creating a Markdown component
- Understanding map projections
- Using scatter map plots
- Exploring Mapbox maps
- Exploring other map options and tools
- Incorporating an interactive map into our app
- Summary
-
Chapter 8: Calculating Data Frequency and Building Interactive Tables
- Technical requirements
- Creating a histogram
- Customizing the histogram by modifying its bins and using multiple histograms
- Adding interactivity to histograms
- Creating a 2D histogram
- Creating a DataTable
- Controlling the look and feel of the table (cell width, height, text display, and more)
- Adding histograms and tables to the app
- Summary
- What we have covered so far
- Section 3: Taking Your App to the Next Level
- Chapter 9: Letting Your Data Speak for Itself with Machine Learning
- Chapter 10: Turbo-charge Your Apps with Advanced Callbacks
- Chapter 11: URLs and Multi-Page Apps
-
Chapter 12: Deploying Your App
- Technical requirements
- Establishing the general development, deployment, and update workflow
- Creating a hosting account and virtual server
- Connecting to your server with SSH
- Running the app on the server
- Setting up and running the app with a WSGI
- Setting up and configuring the web server
- Managing maintenance and updates
- Summary
-
Chapter 13: Next Steps
- Technical requirements
- Expanding your data manipulation and preparation skills
- Exploring more data visualization techniques
- Exploring other Dash components
- Creating your own Dash component
- Operationalizing and visualizing machine learning models
- Enhancing performance and using big data tools
- Going large scale with Dash Enterprise
- Summary
- Why subscribe?
- Other Books You May Enjoy
Product information
- Title: Interactive Dashboards and Data Apps with Plotly and Dash
- Author(s):
- Release date: May 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800568914
You might also like
video
Python Interactive Dashboards with Plotly Dash
Data visualization is a critical part of data science, in this quick and practical course you …
book
Developing Apps with GPT-4 and ChatGPT
This minibook is a comprehensive guide for Python developers who want to learn how to build …
book
Deep Learning for Coders with fastai and PyTorch
Deep learning is often viewed as the exclusive domain of math PhDs and big tech companies. …
video
Kubernetes for the Absolute Beginners - Hands-On
Starting from the fundamental concept of containers, the course gradually unfolds into a comprehensive guide on …