I would like visualise some data stored in a dictionary
foo = {'cat':5, 'dog':1, 'elephant':10} as a bubble plot, with bubble sizes corresponding to the values. Ideally I would like interactivity; when hovering mouse over bubble you see the name 'cat', for example.
Any recommendations and tips for how to achieve this?
An idea I had is to create a pandas dataframe, df =
Animals Love x y 0 cat 5 0 0 1 dog 1 1 0 2 elephant 10 0 1 where the x, y parameters are used to tell something like seaborn the location of the bubbles, and the 'Love' determines the size of the bubbles. This feels somewhat clunky, especially as I have many more than 3 rows. I would like it if the locations of the bubbles were chosen automatically.
Of course, this is just one idea, so any suggestions are very welcome!
