Interactive Dashboards and Data Apps with Plotly and Dash
Elias Dabbas
- 364 páginas
- English
- ePUB (apto para móviles)
- Disponible en iOS y Android
Interactive Dashboards and Data Apps with Plotly and Dash
Elias Dabbas
Información del libro
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.
]]>
Preguntas frecuentes
Información
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
Chapter 1: Overview of the Dash Ecosystem
- Setting up your environment
- Exploring Dash and other supporting packages
- Understanding the general structure of a Dash app
- Creating and running the simplest app
- Adding HTML and other components to the app
- Learning how to structure the layout and managing themes
Technical requirements
Setting up your environment
- Create a Python virtual environment in a folder called dash_project (or any other name you want). This will also create a new folder with the name you chose:python3 –m venv dash_project
- Activate the virtual environment.On Unix or macOS, run this:source dash_project/bin/activateOn Windows, run this:dash_project\Scripts\activate.bat
- Go to the created folder:cd dash_project
- Clone the book's GitHub repository:git clone https://github.com/PacktPublishing/Interactive-Dashboards-and-Data-Apps-with-Plotly-and-Dash
- You should now have a file containing the required packages and their versions called requirements.txt. You can install those packages by going to the repository's folder and running the install command as follows:cd Interactive-Dashboards-and-Data-Apps-with-Plotly-and-Dash/pip install -r requirements.txt