Tips and tips for python plotly

#Tips-and-tips-for-python-plotly

Feel free to comment any idea or suggestion on this post :D

Loading output library...

Adding a color legend in a Choropleth Map

#Adding-a-color-legend-in-a-Choropleth-Map

Annotation is the parameter I used to create a legend in the map. The color font represents the value within the map.

In this case, in order to represent different types of monarchy in the map I add to create a new numerical column based on type of monarchy (string column.

Please, comment below if you know how to create a Choropleth Map using strings values instead of numerical.

Result

#Result
Loading output library...

How to change the hover text

#How-to-change-the-hover-text

Adding background color to a single chart or multiple subplots

#Adding-background-color-to-a-single-chart-or-multiple-subplots

Adjust plotly chart size

#Adjust-plotly-chart-size

Buble maps with buble size adjust to data

#Buble-maps-with-buble-size-adjust-to-data
Loading output library...
Loading output library...

Buble chart with two yaxis

#Buble-chart-with-two-yaxis
Loading output library...

ading string and number on the hovertext

#ading-string-and-number-on-the-hovertext
Loading output library...