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 plotly.express as px # Import Dataset dataset = px.data.gapminder().query("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 plot.show()