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

Bokeh ResetTool expected behavior

What is the expected behavior of ResetTool ? Aside of reseting the plot canvas to its original size, should it also have effect on widgets, for example checkboxes (that is: assuming that on plot creation all checkboxes are set to active, then some…
delavey
  • 93
  • 2
  • 10
1
vote
1 answer

CheckboxGroup in Bokeh to plot additive plots

I want to use a checkbox group to represent linearly additive sources. The idea is for the user to be able to turn on or turn off multiple sources of different kinds to display a plot with added values. I implemented a dropdown version where the…
Brain_overflowed
  • 426
  • 1
  • 5
  • 21
1
vote
1 answer

Get Selected Glyph from NetworkX Graph in Bokeh

I am trying to get the index of nodes selected using box select from a GraphRender object in Bokeh in order to create a linked datatable. (I want to be able to get the index for a selected node) The question is somewhat similar to: JavaScript…
gibbsbravo
  • 55
  • 5
1
vote
0 answers

Bokeh attribute update doesn't update Model without removing a model from curdoc

The below code is a minimal example of an issues where a bokeh model doesn't update when it's attribute is set via a callback. I've found that removing and adding back a model object (not even the suspect one) from the layout of the curdoc forces it…
Chris McL
  • 190
  • 10
1
vote
0 answers

How to label multiple BoxSelectTool in bokeh?

I am trying to run a object detection labeling code. So for different objects I defined a separated Box select tool. So all of them show up at the top of the picture but you all of them have a hovering label 'box select'. How can I change that label…
1
vote
1 answer

How to use the index of selected data from one figure, to plot something in another figure?

I have a scatter plot on one figure. I'd like to be able to select possibly multiple data points on the mentioned scatter plot, and plot a (possibly) multi-line timeseries chart on the other figure, based on the indexes of the selected data. Pseudo…
Dominykas Mostauskis
  • 7,797
  • 3
  • 48
  • 67
1
vote
2 answers

Bokeh - How to have the same widget (or duplicate a widget) in two different tabs?

I'm trying to create a widget filter (made up of TextInput and MultiSelect) that is replicated on two different Bokeh Tabs. The desired functionality is that filtering results should be preserved between tabs, regardless of which filter receives the…
flamenco
  • 2,702
  • 5
  • 30
  • 46
1
vote
1 answer

Bokeh resize plot dynamically

i have Bokeh 0.12.6, what i do p2 = figure(x_axis_type="datetime", plot_width=1500,plot_height=700, x_range=p1.x_range, title="") select = Select(title="SELECT", options=["val1", "val2", "val3"]) select.callback = CustomJS(args={'plot1':…
VolArt
  • 438
  • 2
  • 13
0
votes
0 answers

Bokeh in web app - generate plots on the server (Bokeh) or client (BokehJS)?

Backgroud: consumer data visualization app, scaling from a prototype to production. Current setup: Front-end (React) takes some user input (say car make and model) and sends it to the backend as POST request. Backend (python/FastAPI) parses the…
Tim
  • 236
  • 2
  • 8
0
votes
0 answers

Bokeh CustomJS callback to change data table column visibility to True

I have a multi choice widget and when the user selects an option in the widget I want the DataTable to update and make the column selected visible. So essentially when the TableColumn.field= multi_choice.value I want to change TableColumn.visible=…
Gingerhaze
  • 664
  • 2
  • 5
  • 13
0
votes
0 answers

Bokeh MultiChoice Onload with Pre-Selections

I'm building a Bokeh app with a MultiChoice widget that will update a plot. The code works fine when I select multiple values, but I'm not able to implement a function to either (1) retain my desired selection(s) on startup, OR (2) load multiple…
mg520
  • 33
  • 6
0
votes
0 answers

how to embed bokeh plot into html

I am working with bokeh library in python to generate charts like bar chart , histogram , line chart for visualization of data. Our code was developed in bokeh version 1.4.0. Now, I want to upgrade the bokeh version to 2.4.3 but, here the issue is…
0
votes
1 answer

How can I return the index of the scatter using js callback?

I am trying to create a JS callback to return the index of the scatter I created. But seems like the output is always “undefined”. Could anyone help me what is wrong with my code? here is a short example: from bokeh.models import ColumnDataSource,…
0
votes
1 answer

How to customise distance between tickers on the 2nd y-axis in BokehJS

So I'm trying to create a plot with BokehJS. This plot needs 3 axes (left, right, bottom): The plot looks like this As you can see, the right y-axis is pretty ugly, you can't read any data from towards the bottom as the tickers are bunched up. This…
mrblue6
  • 587
  • 2
  • 19
0
votes
1 answer

How toInvisible Undefined last element in JS array

I have a Javascript array, full_range: const range1 = _.range(1, 10, 0.5); const range2 = _.range(10, 100, 5); const range3 = _.range(100, 1000, 50); const range4 = _.range(1000, 10000, 500); const range5 = _.range(10000, 105000, 5000); const…
mrblue6
  • 587
  • 2
  • 19
1 2 3
8 9