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
7
votes
3 answers

How to color rows and/or cells in a Bokeh DataTable?

Starting from Initial table, I need to highlight(color) elements as shown in either one of the table examples Ex. 1, Ex. 2, Ex. 3. Any idea?
flamenco
  • 2,702
  • 5
  • 30
  • 46
4
votes
0 answers

How to use make use of BokehJS in an Angular app?

I am unable to use the BokehJS library in my Angular app (https://docs.bokeh.org/en/latest/docs/dev_guide/bokehjs.html). I get the following error as soon as I try to call the library from my app : ERROR in…
Nnexxus
  • 41
  • 1
4
votes
1 answer

Unable to update datasource in Bokeh python

I am using Bokeh 1.0.1. I am unable to update the data source in the Update method i.e src.data.update(new_src.data) doesn't seem to work. Below is the full code. def modify_doc(doc): def create_dataset(df, resample='D'): # Resample the…
Po Xin
  • 113
  • 5
4
votes
2 answers

How to use cb_obj in callbacks in bokeh?

In bokeh.models.actions.Action, there is a callback class for user defined callback. It passes the current plot_object as cb_obj implicitly. However, I don't know how to access the data from the plot_object. fig = figure() …
colinfang
  • 20,909
  • 19
  • 90
  • 173
3
votes
0 answers

Bokeh embedded plot not acting dynamic in Flask App with no Error

Dynamic Property of bokeh lost when embedded in Flask.I have made simple program related to my plot sample plot where i can generating data in script itself and plotted . As previous plot is acting dynamic in jupyter but while bokeh plot embedding…
Ryan Ahmad
  • 39
  • 3
3
votes
2 answers

Filter Dataframe Using Bokeh Dropdown Widget/CustomJS

I have to make a standalone html dashboard so I'm trying to figure out how to add a callback to a bokeh dropdown widget using CustomJS. Problem is even after consulting other posts on variations on the subject I still can't figure it out. Any help…
imstuck
  • 191
  • 2
  • 11
3
votes
1 answer

How to import external javascript library into Bokeh generated html

I would like to make use of a javascript library (specifically this one) in my Bokeh javascript callback. How can I specify importing of this javascript library such that the library is accessible from Bokeh's js callback functions? The examples…
Ashok
  • 1,079
  • 3
  • 10
  • 17
2
votes
0 answers

How to add onclick event in Bokeh?

I am using python3.10 with Bokeh2.4.3. My goal is to create a simple scatter plot with only a few points (around 10-15 data points). But if I click one of those data points, I want it to open a new tab with another plot i.e. each data point of the…
2
votes
0 answers

Bokeh DataRange1d: return to automatic updates of start/end

In order to set axis ranges dynamically I use x_range = DataRange1d(follow='end', follow_interval=duration, range_padding=0, range_padding_units="percent") which updates the start/end property of the range dynamically as new data is…
Tengrath
  • 81
  • 1
  • 8
2
votes
0 answers

Bokeh dynamic title

How to change the title of the Bokeh plot based on box zoom? For example, I want to display the title as the sum(x)/sum(y) (want to change the title dynamically when box zoom is used).
vizz
  • 21
  • 1
2
votes
1 answer

Timeline Slider for Dataset Python Bokeh

I need ur help. I try to plot a route on a map. The dataset consists of lon and lat. I want to include only a part of the route with a interactive solution like a RangeSlider. For example only the 2th and 4th index. Unfortunately I do not know how…
Pm740
  • 339
  • 2
  • 12
2
votes
1 answer

Python / Bokeh / Javascript / js_on_change for stacked bar and dropdown list selection

I am struggling to understand how to incorporate js_on_change for self-embedded bokeh stacked bar graph with dropdown selection. In a nutshell, whenever we select a value in the dropdown menu, it should map itself into a list of columns of the main…
tmrkv
  • 23
  • 4
2
votes
1 answer

python bokeh dynamically update categorical x_range

I want to create a candlestick plot in bokeh and dynamically update the x-axis according to user input through a MultiSelect widget. Basically the user will choose a few items in the MultiSelect and then I would like those to become the values of…
wylie
  • 173
  • 11
2
votes
0 answers

Save Bokeh Panel to standalone HTML

I have been following this tutorial: http://dmnfarrell.github.io/bioinformatics/bokeh-maps (see all code at bottom) which creates a Bokeh dashboard with a choropleth. A slider allows you to change the year of the data that is being shown. Can such…
MrKaplan
  • 61
  • 1
  • 5
2
votes
2 answers

bokeh issue on loading katex in jupyter notebook

I'm trying to replicate the bokeh latex example mentioned at https://docs.bokeh.org/en/latest/docs/user_guide/extensions_gallery/latex.html#userguide-extensions-examples-latex in jupyter notebook for LabelSet. I could see the katex.min.js being…
revendar
  • 371
  • 2
  • 3
  • 12
1
2 3
8 9