I am making an animated bubble plot that is almost done but, when it runs it comes across a problem. That is being stuck in the middle of my graph. I am trying to graph the amount of pesticide used in relation to the year.
figure = bubbleplot(dataset=df.sort_values('year'),
x_column='year', y_column='nCLOTHIANIDIN',
bubble_column='nCLOTHIANIDIN', time_column='year',
size_column='nCLOTHIANIDIN', color_column='nCLOTHIANIDIN',
x_title="year", y_title="nCLOTHIANIDIN",
title='Timeline of honey production for each state in USA',
colorbar_title='# colonies', colorscale='Viridis',
x_logscale=False, y_logscale=False, scale_bubble=1.8,
height=650)
iplot(figure, config={'scrollzoom': True})
Which provides this:
Now when I run the code it iterates through the slider perfectly but, as you can see for some reason the x axis is all messed up. It starts at 1500 and ends at 2500 for some reason when it should have the same years as the slider. Also as you can tell the bubbles are stuck at 2000. I donβt know why. Thanks for the help.