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
0 answers

DatetimeRangeSlide updating network graph with bokeh

I would like to update a network graph using a datetime range slider with Bokeh. So appearing/disappearing nodes depending on the datetime range, and also width of edges is proportional to the number of connections between sources and target within…
Laure D
  • 857
  • 2
  • 9
  • 16
0
votes
0 answers

How to integrate long mathematical formula in Bokeh CustomJS callback?

I have a very long mathematical formula expression (sympy_expr, obtained from Sympy) with a few free parameters. I want to make an interactive Bokeh widget with a few sliders for tuning of the free parameters, similarly to the example code below but…
Shudras
  • 117
  • 2
  • 8
0
votes
0 answers

Is it possible to insert/show a BokehJS figure/plot in a react component (No python)

I have a PlotView React component where I like to create a BokehJS figure and show it in a specific
. See code below: import React, { useEffect } from 'react'; export enum PlotType { LINE } export interface IPlotViewProps { name:…
Farnaz K
  • 31
  • 2
0
votes
1 answer

bokeh could not set initial ranges

I am a begineer in plotting graphs in bokeh. So please forgive me if this is a stupid question. I am trying to plot a line grpah, where my data is in a dataframe and I have provided the x and y axis as lists. But some of my data in y axis has…
noob
  • 3
  • 3
0
votes
1 answer

Can not get any Bokeh graphs show up when the check boxes are ticked

I have tried the below code to generate bokeh graphs for each of the element when the their respective check boxes are ticked. data is a df with columns like 'id', 'data_point', 'max', 'min' I am expecting a graph where if the data_point is empty or…
noob
  • 3
  • 3
0
votes
1 answer

How to get the values at the pixels of a bokeh image glyph in hover tool?

I have generated a bokeh 2d-histogram plot as mentioned in this StackOverflow answer. The code and respective image is given below. In the code, the count of data-points per bin is in the entries in H. How can I get access to an individual…
Anirban Chakraborty
  • 539
  • 1
  • 5
  • 15
0
votes
0 answers

Bokeh: how to update/redraw the plot data after slider.on_change (with AJAX)?

I'm creating a heatmap + colormap with Bokeh + Flask. I would like to use Flask routes (instead of running a second Bokeh server involving Tornado...). The following code works, but the slider1.on_change is now connected to a dummy CustomJS…
Basj
  • 41,386
  • 99
  • 383
  • 673
0
votes
0 answers

Bokeh TextInput to filter the labels in checkbox

I'm trying to do a text input where user can write the plot that they want to show. For example if user type "plot 1", only plot 1 is shown in the checkbox and user can click to activate/deactivate the chart from bokeh.io import output_file,…
bag3r0
  • 1
0
votes
0 answers

Interaction between two bokeh maps

I want to click on one state on the first map and display, on the second map, this state with its counties. I wrote the following code but it is not working ! Anyone has a suggestion ? Many thanks in advance !! My data is like this (I use…
0
votes
0 answers

Bokeh Custom Tool in JavaScript throws error

I am currently working on a bokeh application with continuous AND categorical data in the same Dataframe. Since the PointDrawTool of bokeh only comes with support for continuous data, I need to write a custom PointDrawTool myself. I followed the…
DrEichenbach
  • 382
  • 1
  • 2
  • 13
0
votes
0 answers

How to proportionally size plots' height in Bokeh?

I want two plots that stretch to fill up the entire window, like this: # to run this, use: bokeh serve --show test.py from bokeh.layouts import column from bokeh.plotting import figure, curdoc x = list(range(11)) y0 = x y1 = [10 - i for i in…
Jase
  • 1,025
  • 1
  • 9
  • 34
0
votes
1 answer

How to update dataframe with bokeh callback?

I’m trying to recalculate the distance between two coordinates, one is given through 2 TextInput classes and the other is in a dataframe. I want to resolve this issue in order to select the data based on proximity conditions, maybe select options,…
0
votes
1 answer

Bokeh JS save plot as PNG programmatically

How to save plots in Bokeh JS as PNG programmatically? The documentation gives the following example in Python: from bokeh.io import export_png export_png(plot, filename="plot.png") I could however not find an example on how to programmatically…
Mark wijkhuizen
  • 373
  • 3
  • 10
0
votes
1 answer

Bokeh Plot: Overlay a plot and a Div to get a gradient background using Bokeh

Initial Goal I have a candlestick plot in Bokeh that is essentially a clone of the MSFT candlesticks example but with my custom data. All I want is a grey-black gradient background behind that plot. What I've Tried Bokeh doesn't have…
JoeVictor
  • 1,806
  • 1
  • 17
  • 38
0
votes
1 answer

Bokeh - save plot as svg (ValueError: OutputDocumentFor expects a sequence of Models)

I made a plot in Bokeh but when I try to export it as a svg file I get the following error: OutputDocumentFor expects a sequence of Models. My code is: # plot 2D histogram def plot_hist(ch1, ch2, ch1_name='G3BP1', ch2_name='Nucleocapsid'): …
1 2 3
8 9