Change color based on date slider

I am trying to change the fill colors on some square glyps based on a date slider. The colors are based on some values in the ‘data’ param of ColumnDataSource. Is there a way to make the slider values a date and each step be by minute?
From the docs: slider = Slider(start=0.1, end=4, value=1, step=.1, title=“power”, callback=callback)
My markers I am trying to change: p.square(x, y, size = 15, alpha=0.5, source=source, fill_color=colors)
I am trying to see the progression of my scatter objects over a time period with changes in color using CustomJS. Any tips on getting a date selection slider or how to incorporate the fil_color param with callbacks would be greatly appreciated! thanks

You should just need to specify the color change in a callback on
Slider. You can see lots of examples of using callbacks with
sliders in the examples:

Post some code if you can’t get it to work.

···

https://github.com/bokeh/bokeh/tree/master/examples
On 7/26/16 3:16 PM, cerialc wrote:

    I am trying to change the fill colors on some

square glyps based on a date slider. The colors are based on
some values in the ‘data’ param of ColumnDataSource. Is there a
way to make the slider values a date and each step be by minute?

    From the docs: slider = Slider(start=0.1, end=4, value=1,

step=.1, title=“power”, callback=callback)

    My markers I am trying to change: p.square(x, y, size = 15,

alpha=0.5, source=source, fill_color=colors)

    I am trying to see the progression of my scatter objects over a

time period with changes in color using CustomJS. Any tips on
getting a date selection slider or how to incorporate the
fil_color param with callbacks would be greatly appreciated!
thanks

  You received this message because you are subscribed to the Google

Groups “Bokeh Discussion - Public” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to [email protected].

  To post to this group, send email to [email protected].

  To view this discussion on the web visit [https://groups.google.com/a/continuum.io/d/msgid/bokeh/843f2263-8ec1-4464-b312-624bf1727e67%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/843f2263-8ec1-4464-b312-624bf1727e67%40continuum.io?utm_medium=email&utm_source=footer).

  For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).


Sarah Bird
Developer, Bokeh

    [
      ![Continuum Analytics](http://docs.continuum.io/_static/img/ContinuumWordmark.png)
    ](http://continuum.io)