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
0
votes
1 answer

Once a dropdown option is selected, how do I "change.emit" or "trigger change" on the plot?

Any ideas what's supposed to go where the triple '?'s are? import pandas as pd from bokeh.layouts import column from bokeh.models import CustomJS, ColumnDataSource, Slider, Select import bokeh.plotting as bp from bokeh.plotting import Figure,…
Ally Alfie
  • 131
  • 11
0
votes
2 answers

How do I access a Bokeh (Python) variable with JS?

I'm making a dropdown which displays a certain plot depending on what is selected. I've made my dropdown and begun my CustomJS callback function. At the moment, all I want to do is log whatever option is selected in the dropdown, but obviously I…
Ally Alfie
  • 131
  • 11
0
votes
1 answer

Toogle single radiobutton (on and off) in bokeh radiobutton group

I am using bokeh single radio button with single title . Initially it is inactive and when i click on radio button it changed to active but if I click again in active it is not changing to inactive state. How i need to acheive this functionality??
Akhil Amarneni
  • 71
  • 1
  • 2
  • 6
0
votes
2 answers

How to control a non-React component (BokehJS) in React?

Backstory I want to include a BokehJS plot in my React component. The process for this is to render
and call window.Bokeh.embed.embed_item(plotData, 'my_plot_id') which injects needed HTML into the…
davegravy
  • 888
  • 11
  • 28
0
votes
0 answers

Bokeh PATCH-DOC ping-pong resets plots

Our dashboard has three relatively data-hungry plots: two image plots (200x200x3) custom extension tool plot (200x200x4). We 'update' (send data to) them from doc.add_next_tick_callbacks. We are hitting a weird situation where the image plots…
David L
  • 21
  • 4
0
votes
1 answer

How to implement custom bokehjs extension that consumes a source, like image_rgba does?

I'm creating a custom extension for bokeh. It's all working and the example in the documentation was useful. However, I'm trying to mirror what image_rgba does, namely with images you can do: figure.image_rgba( image="image_path_in_source", …
David L
  • 21
  • 4
0
votes
0 answers

Unable to refresh plot in Bokeh JS with jupyter notebook

I'm trying to port this example from Bokeh to inside a notebook (cf here the source code) Here's my attempt: import pandas as pd from bokeh.layouts import row, widgetbox from bokeh.models import Select from bokeh.palettes import Spectral5 from…
lezebulon
  • 7,607
  • 11
  • 42
  • 73
0
votes
0 answers

Bokeh JS callback to select table rows based on selection from another table

I have two bokeh tables and I would like to click on a table record in the first table and select rows in the second table based on matching values from in the field. created a js callback script to: Create an empty list to hold indices from table2…
0
votes
1 answer

How to update a source in a JavaScript Callback of Bokeh in Python?

I am adapting this answer for my case, where I want an interactive, standalone graph where the slider selects which column of the data to plot in a bar chart. (Standalone is crucial, I cannot run a Bokeh server, thus the need for JavaScript…
László
  • 3,914
  • 8
  • 34
  • 49
0
votes
1 answer

BokehJS + React: "Module not found: Can't resolve 'core/bokeh_events'"

I've installed BokehJs (0.13.0) as a dependency in a create-react-application. It appears to install just fine, but once I try to require it into a component, I just get this error message: Module not found: Can't resolve 'core/bokeh_events' in…
0
votes
1 answer

How to group lines in a Bokeh table?

To create a Bokeh table with selectable lines, I'm using this example. The issue is that my data is represented as groups of different lines that looks like this: Any idea how it can be done in Bokeh?
flamenco
  • 2,702
  • 5
  • 30
  • 46
0
votes
1 answer

How to capture the result returned by a callback function call on a Bokeh TextInput widget?

I'm working on a Bokeh application which, among other widgets, has a TextInput and a MultiSelect. (Since Bokeh does not have a native Search widget, I try to build one that has a box for input and a box to display the results returned by a dB query…
flamenco
  • 2,702
  • 5
  • 30
  • 46
0
votes
1 answer

Bokeh js change or rerender one plot to another plot by clicking

I have these python code from bokeh.embed import components from bokeh.plotting import figure from bokeh.models import layouts, CustomJS, Select bokeh_tools = "pan,wheel_zoom" plot_1 = figure(x_axis_type="datetime", plot_width=800,…
VolArt
  • 438
  • 2
  • 13
0
votes
1 answer

Standalone BokehJS Example

As a novice user of typescript (but an experienced user of Bokeh), I'm trying to take one of the BokehJS examples and run it standalone -- that is outside of the file hierarchy of the Bokeh git repo. So for example, if I want to run the burtin…
JoshAdel
  • 66,734
  • 27
  • 141
  • 140
1 2 3
8
9