Skip to content
forked from AashitaK/bubbly

A python package for plotting animated and interactive bubble charts using Plotly

License

Notifications You must be signed in to change notification settings

Alex-McAvoy/bubbly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bubbly

Bubbly is a package for plotting interactive and animated bubble charts using Plotly. The animated bubble charts can accommodate up to seven variables viz. X-axis, Y-axis, Z-axis, time, bubbles, their size and their color in a compact and captivating way. Bubbly is easy to use with plenty of customization, especially suited for use in Jupyter notebooks and is designed to work with plotly's offline mode such as in Kaggle kernels.

Dependencies

  • Python == 3.10.9
  • numpy == 1.25.0
  • pandas == 2.0.3
  • plotly == 5.18.0

Installation

pip install bubbly

Usage in a Jupyter Notebook

from __future__ import division
from plotly.offline import init_notebook_mode, iplot
init_notebook_mode()
from bubbly.bubbly import bubbleplot

figure = bubbleplot(dataset=gapminder_indicators, x_column='gdpPercap', y_column='lifeExp',
  bubble_column='country', time_column='year',  size_column='pop', color_column='continent',
  x_title="GDP per Capita", y_title="Life Expectancy", title='Gapminder Global Indicators',
  x_logscale=True, scale_bubble=3, height=650)
iplot(figure, config={'scrollzoom': True})

https://github.com/AashitaK/aashitak.github.io/blob/master/images/bubblechart.gif

Please refer to the Jupyter notebook here for more examples and illustration of the plotting function bubbleplot.

Note: I am looking for someone to be the maintainer of this package. If you are interested, please contact me.

About

A python package for plotting animated and interactive bubble charts using Plotly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%