Plotly Bubble Chart

In this Plotly tutorial, you will learn how to plot a bubble chart in Python. The size parameter is used for the bubble chart in the following code.

# Import Plotly Module
import as px

# Import Dataset
dataset ="continent=='Oceania'")

# Bubble Chart
plot = px.scatter(dataset, x="gdpPercap", y="lifeExp", size="pop", color="country", title='Plotly Bubble Chart', height=400, width=600)

# Show the Plot
Plotly Bubble Chart

Free learning resources: AiHintsCodeAllow

Leave a Comment

Your email address will not be published.