Giter VIP home page Giter VIP logo

bubbly's Introduction

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.4+
  • numpy
  • pandas
  • plotly

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.

bubbly's People

Contributors

aashitak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.