Learn how to create custom bump charts in Python using Plotly for data visualization

Bump Charts in Plotly (Image by the Author)

Plotly is one of the most complete libraries for visualizing data in Python and, without a doubt, my favorite. It has a wide range of visualizations already defined, from basic visualizations, such as bar charts or pie charts, to more specific visualizations from the statistical or data science area, such as box plots or dendrograms.

The visualization options available in Plotly are immense; however, some visualizations are not available in the library. This does not mean that we cannot do them. With a little ingenuity, and using the customization and visualization options present in Plotly, it is possible to create many visualizations that, a priori, were impossible to do. One of them is the bump chart.

This article will explain how to create bump charts using Plotly. Starting with a scatter plot and a little imagination and creativity, we will see that creating this type of visualization is easier than it seems.

Bump charts, also known as ranking charts, are designed to explore changes in a ranking over time. This type of chart allows you to quickly identify trends…