Waffle 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 offered by Plotly are pervasive; 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 waffle charts.
This article will explain how to create waffle charts using Plotly. Starting with a heatmap and a little imagination and creativity, we will see how the creation of this type of visualization is easier than it seems.
Waffle charts are an interesting alternative to pie charts or bar charts when you want to visualize proportions using an alternative layout…