Request for advanced examples of CustomJS Callbacks

First of all, congratulation for your development on Bokeh. I recently started to use it, it is a great tool.

My joob is to include analytical graphs inside a Flask app, and Bokeh seems a great option. I will really appreciate if you recommend me some advance examples or tutorials that cover the topic of using 2 or more widgets, multiple selection, to filter a large data set and interactively change the final plot, specially using CustomJS Callbacks, because it seems more easy to include the final script on some html file. The Gallery in the standalone section does not include this type of use.

Thank you in advance for your kind help.

@CONSUMERTEC have you seen this section of the User’s Guide?

There are also many more examples than the gallery in the examples directory of the repo:

You can search through those for CustomJS to find lot of examples that use callbacks.

It’s hard to know what else to suggest without specifics, and even so, most callback usage has the same general outline, regardless of how many widgets, etc:

  • read widget values, slider.value, picker.value or whatever you have

  • do some computation with those values

  • modify some Bokeh objects (e.g. source.data or a CDS filter) to cause the page to update

Most of the “work” is in that middle bullet, but it’s not really Bokeh related or Bokeh specific, it just depends on what you in particular need to compute (in JavaScript)

1 Like