Questions tagged [bokehjs]

BokehJS is an interactive visualization library for JavaScript. It is the backend of the Bokeh Python Library. Please Only use this tag for BokehJS questions, use [Bokeh] for Bokeh Python API questions

Bokeh is an interactive visualization library for modern web browsers. BokehJS provides an API for use in JavaScript, there also exists a Bokeh Python Library which utilizes BokehJS as its backend. It provides elegant, concise construction of versatile graphics, and affords high-performance interactivity over large or streaming datasets. Bokeh can help anyone who would like to quickly and easily make interactive plots, dashboards, and data applications.

134 questions
1
vote
1 answer

Interactively change a plot in Bokeh using sliders to select column

My question is very similar to this one, but I still cannot find how to adapt the answers to my problem. I have a dataframe with 100 columns. I want to use two sliders in Bokeh to select one column to show in the plot. I want to do this with…
ffgg
  • 134
  • 1
  • 8
1
vote
0 answers

Add customized Bokeh JS

I'm new to Bokeh Server and intrigued how Bokeh is able to get the static/js/bokeh-widgets.min.js file eventhough this folder doesn't exist. I'm trying to use a customised version of bokeh-widget js. I've added the JS file in…
Mukesh Kumar
  • 333
  • 1
  • 5
  • 20
1
vote
0 answers

Passing Variable from BokehJS Callback Function to Python

Does anyone know how to pass a variable from bokehjs callback function to python? I'm developing a web app using flask framework and I'm trying to select several points from bokeh plot on my web app and get the x,y coordinates. I want my…
1
vote
0 answers

How to add a custom right click menu into my bokeh code?

I obtained a graph in which many nodes are there in the node I have to create a custom menu after clicking right click. SO in my code what should I add so that instead of normal menu my own custom value should come? Here I have a bokeh code which…
1
vote
0 answers

How to update a python bokeh plot as soon as data is available?

The bokeh server plot is updated when the reading of all datapoints is finished. I would like to have the datapoints updated one by one, as soon as they are available from a file stream. I have code in MVC style: The controller opens the filestream,…
katya_ava
  • 65
  • 1
  • 7
1
vote
0 answers

Bokeh CustomJS hover over to recolor

I'm fairly good with Python but new to Bokeh as well as javascript. I'm trying to achieve a hover over effect similar to the one seen in the documentation for customjs for hover. The catch is that aside from the effects in the example, I would also…
theresemoreau
  • 109
  • 2
  • 8
1
vote
1 answer

Bokeh CustomJS Passing Array of Glyphs

I am trying to create multiple figures that sow various info about countries. On top of that, I am trying to have set of buttons that would hide plots of countries across all figures. When using CustomJS callback, I am trying to pass…
Draq
  • 49
  • 1
  • 7
1
vote
0 answers

Python . CustomJS doesn't work js_on_change , Bokeh slider

There is code which has to show on map some data by let's say some number(year) and problem is that CustomJs not even calling and data on slider doesn't work def json_data(selectedYear): yr = selectedYear df_yr = df[df['year'] == yr] merged…
Timon S
  • 26
  • 4
1
vote
1 answer

how to create columns for a checkbox group in Bokeh

I have close to 50 items that can be checkboxed. The list is long. How can I create multiple columns, say 5 columns with 10 items each?
NinjaGaiden
  • 3,046
  • 6
  • 28
  • 49
1
vote
1 answer

Is there a way to update legend patch labels using a CustomJS callback?

Using Bokeh 1.4 and Python 3.7. I have a set of patches that I'd like to vary the color theme for based on two different keys (and labels) from the same ColumnDataSource. I want to stick to using one ColumnDataSource because my real file is quite…
1
vote
1 answer

CheckBoxGroup is not updating in Python/Bokeh

I am trying to create a dashboard of data for our university, and have run into a problem with how it is presenting. I am using Bokeh and Python to create somewhat interactive graphs. My checkbox group is not updating when I click a box to select…
Kubes
  • 37
  • 5
1
vote
1 answer

Create Standalone Bokeh Document with js

Trying to rewrite Bokeh example as standalone document but not sure how I can add widgets to the html file. With "file_html" I can create an html string but what should I do if I also want to save and add widgets like Sliders, Buttons etc. ? from…
1
vote
1 answer

Why does a BokehJS example fail in the browser?

I'm trying to figure out if BokehJS can meet my plotting needs for a minor dev project. When I try to copy the last example found on https://docs.bokeh.org/en/latest/docs/user_guide/bokehjs.html it fails with this backtrace in Chrome: Uncaught…
dragz
  • 41
  • 1
  • 7
1
vote
0 answers

Using the results of an interactive plot to update a second graph on a grid using Bokeh and CustomJS

I have an interactive Bokeh plot that uses CheckboxGroup to plot experimental additive values of different sources. In the background I have stationary plots of theoretical requirement values. I want to be able to, e.g. 1.click on sourceA and…
Brain_overflowed
  • 426
  • 1
  • 5
  • 21
1
vote
1 answer

Bokeh: How to update data table after using box select on scatter plot?

I am trying to update a data table automatically when I use box select on a Bokeh scatter plot. The table should display all the elements which are in the selected box. This is for Bokeh version 1.0.4. Python 3.5 I've tried several methods to do…
1 2
3
8 9