Earn 20 XP


Learning Objectives

  • 3D Scatter Plot
  • Racing/Animated Bar Chart
  • Plotly Cheatsheet

3D Scatter Plots

image1.gif

3D Scatter Plots provide you the ability to rotate the data so that you can investigate the data from different angles. Up to four variables (three numeric and one categorical) may be displayed on a single graph.

In the video below, we'll perform Female Labour Force Participation Analysis using a 3D scatter plot generated by Plotly. We will also animate the plot and save it as HTML to share with others.

The dataset, originally from https://ourworldindata.org/ has been clean and converted into a CSV file that can be accessed from here:

https://raw.githubusercontent.com/dphi-official/Datasets/master/female_labour_cleaned.csv

Code:

https://github.com/dphi-official/Micro-Courses/blob/master/Plotly%26Dash/3D_Scatter.py

Racing/Animated Bar Chart

image1.gif

You must've seen these creative visualizations that so easily convey the data. It is also eye-catching and would deck up your presentation to the investors, won't it? Let's learn how we can create one using Plotly.

You can directly use the dataset from the link:

https://raw.githubusercontent.com/dphi-official/Datasets/master/suicide-rate-1990-2017.csv

Code:

https://github.com/dphi-official/Micro-Courses/blob/master/Plotly%26Dash/Racing_Bar_Graph.py

Plotly Cheatsheet

This sheet contains simple code samples for all the plots in Plotly:

https://images.plot.ly/plotly-documentation/images/python_cheat_sheet.pdf

Comprehensive and concise resource

This Kaggle Notebook will give an overview and implementation of all the commonly used Plotly visualizations. Make sure you go through it.

https://www.kaggle.com/kanncaa1/plotly-tutorial-for-beginners

You can download the slides for this topic from here.