For example; in your code you have a slider.js_on_change when the slider is changed to show the updated values.
I now want to add a play button to the slider so that it can play through the slider automatically.
I tried getting the element using document.getElementById but it seems the ID of the element is automatically assigned and not the same as my variable name.
The logic for playing would just be:
When button is pressed if it’s label is == play, change button label to pause, every X milliseconds increase the step slider value by 1.
else if it’s label is == pause, break/cancel.
Is this situation possible, or do I need to be using bokeh-server with the gapminder example of play/pause slider?
On Wednesday, October 11, 2017 at 3:46:06 AM UTC+11, Eugene Pakhomov wrote:
You’ve deleted the previous post, so I’ll post the solution here: https://pastebin.com/BeeyhJH2
Another solution would be to create a custom color mapper that uses a threshold to choose colors.
On Tuesday, October 10, 2017 at 11:06:41 PM UTC+7, R wrote:
I’m trying to show the spread across a graph starting at the bottom left.
I’ve got it working currently with a slider to step through each iteration and see how it’s spreading, but it’s very very slow, you can see below:
The code I’m using to run this: https://pastebin.com/QidMJP0p (I execute it using bokeh serve nameOfFile.py
I’ve attached the CSV file with the data i’m using, you’ll have to update the directory path at the bottom of the code if you intend to run it.
Is there anyway to achieve my result and have the plotting of the lines/circles much much faster?