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

Bokeh Graph Starting or Finishing with NaN Y-Axis Values Is Not Shown

I am trying to get a graph that has all of the x-axis values filled but starts with y-axis values that are NaN. It appears that the graph will start at the first real y-axis value. Here is the example: from bokeh.plotting import figure, output_file,…
Ross Cradock
  • 103
  • 7
0
votes
2 answers

Resize bokeh plot from CustomJS

Resize bokeh plot from CustomJS. window.setXYDimension = function (width, height) { fig.plot_width = width; fig.plot_height = height; console.log({fig}); fig.reset(); //reset doesn't exist fig.resize(); //resize doesn't exist …
Ajay
  • 4,773
  • 3
  • 23
  • 36
0
votes
1 answer

How to define Python Bokeh RangeSlider.on_change callback function to alter IndexFilter for plots?

I'm trying to implement a python callback function for a RangeSlider. The Slider Value should tell which Index a IndexFilter should get for display. For example: If rangeslider.value is (3, 25) my plots should only contain/view data with the Index…
Pm740
  • 339
  • 2
  • 12
0
votes
1 answer

Plot multiple lines with Python Bokeh fom the same dataset

Is there a possibility to achive plots like sample1 with Bokeh? Sample1 was created with Matplotlib. My goal is to plot multiple short lines which are separated from each other on the map. But the lines share the same source and are just different…
Pm740
  • 339
  • 2
  • 12
0
votes
0 answers

BokehJS Custom Tool for Toggling Legend Visibility

My bokeh app is dealing with a grid of several figures, each showing several glyphs. To improve readability, I'd like to be able to hide/show the legends of the figures on clicking on a button. Though this appeared to me as a perfect example for a…
Alperino
  • 486
  • 3
  • 10
0
votes
0 answers

How to include nodejs in executable?

I have a python file which uses custom bokeh extensions to generate surface3d plots and convert them to png using export_png. The executable runs successfully on my current system but I get the following error when I move it to a system without…
Ray234
  • 173
  • 5
  • 15
0
votes
0 answers

How to connect to bokeh server through different device in same network

I have a Bokeh Server running on my laptop, with a simple bokeh serve --show myprogram.py and I want to be able to connect to the same server with a different device that is in the same network. For starters that would be my home network, but in the…
Ale Pan
  • 57
  • 1
  • 6
0
votes
1 answer

Bokeh Server Plot - How to make new values appear in the center with a fixed axis range

I want to create a plot that shows the live metering data I am getting from an electricity meter. I already figured out how to have a plot in bokeh, that updates every x seconds with new values, but now I want to have the new values always be at a…
Ale Pan
  • 57
  • 1
  • 6
0
votes
2 answers

Bokeh Custom Extension Issues

I am attempting to learn about implementing bokeh custom extensions to create some widgets that I would like for my data project. I was attempting to follow along with this example here but I am having trouble running the example extensions that…
0
votes
1 answer

Python-Bokeh application:Unable to export updated data from Webapp to local system by clicking on Bokeh Button widget

I am currently working on creating a Python-Bokeh based webapp Application running on server.In this application,user can preview the data from a pandas dataframe(shown using BOKEH DATATABLE) and can modify the data as per business needs. After…
Ravi
  • 3
  • 2
0
votes
1 answer

linking JS bokeh widget

I have two simple bokeh widgets: a Select and a Slider - I can get the two widgets working separately but I can't find a way to get the two widgets linked together - so that the js_on_change action on one of them will update the status of the…
epifanio
  • 1,228
  • 1
  • 16
  • 26
0
votes
1 answer

color text in a editable Bokeh DataTable if value has changed

I am using Bokeh DataTable to present an editable table and I wish to color the text in the cell if the value has changed by the user. I was trying to use HTMLTemplateFormatter but I am not sure what to do. If a user changed the value of row #2 I…
ItamarG
  • 406
  • 5
  • 14
0
votes
1 answer

How to add label in each line using Bokeh

I was trying to create a close area using Bokeh. That is how I have done that, from bokeh.plotting import figure, output_file, show p = figure(title="line", plot_width=300, plot_height=300) p.line([1, 2, 3, 4, 5, 1], [6, 7, 8, 7, 3, 6]) …
Kazi
  • 1,461
  • 3
  • 19
  • 47
0
votes
2 answers

Bokeh JS callback when plotting differential equations

I'm relatively new to Python and Stackoverflow so apologies if this question has already been asked but I've searched for quite a while now and can't really find a solution to what I'm trying to do. Problem: I've been trying to create a very basic…
YP41
  • 35
  • 5
0
votes
1 answer

Applying .filter() to ColumnDataSource in Bokeh JS Callback

The problem: I am not able to apply a filter function to columndatasource, and even after applying it's giving my entire full array. My lack of familiarity with JS is making things worse. So I've been trying to reproduce the results from here:…
raghavsikaria
  • 867
  • 17
  • 30
1 2 3
8 9