Plotly Hands-on: How to Create a Multiple Y-Axis Combo Chart with Plotly Go

A Step-by-Step Tutorial to Learn Plotly for Better Data Visualization and Storytelling

My Data Talk
CodeX

--

Photo by Sharon McCutcheon from Pexels

Introduction

A Dual or Multiple Y-Axis Chart is a special type of data visualization that plots multiple metrics that have very different scales (or units) in the same chart. For example, you can plot the number of Covid-19 new cases each day (measured in quantities) in the primary y-axis, and show the daily positivity rate (measured in percentages) by adding a secondary y-axis, without the need to create two separate graphs.

Creating a dual or multiple y-Axis Chart is an efficient way to bring multiple perspectives into one visualization. However, don’t overdo it and only visualize your data with this type of chart when it makes sense to do so. Always exercise your good judgment on what and the number of metrics you want to show with multiple y-axes because it might become confusing to read.

In this post, I’ll walk you through, step-by-step, the process and the complete code of creating an interactive, multiple Y-axis combo chart using Plotly, in the context of real estate market analysis. The three metrics we are visualizing in the chart below all have very different scales, therefore…

--

--