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

BokehJS FreehandDrawTool does not plot line when dragging mouse in canvas

In BokehJS 2.4.2 the FreehandDrawTool documentation is showing in the toolbar, but no line is drawn when dragging the mouse in the canvas. Here is a minimal example to reproduce the problem. This example is so minimalistic it is hard to figure out…
Mark wijkhuizen
  • 373
  • 3
  • 10
0
votes
1 answer

BokehJS HoverTool apply to selective glyphs with names property

When setting the names property for HovertTool in BokehJS 0.13 and the name property of glyphs the HoverTool should only be visible for glyphs with matching names as stated in the documentation. When setting the names property of the HoverTool no…
Mark wijkhuizen
  • 373
  • 3
  • 10
0
votes
1 answer

How can I optimize this Bokeh CustomJS plot so changes load more quickly?

Here is a MRE for a plot I made using Bokeh 2.3.2. The actual data set contains around a hundred projects which each have up to 10 tasks and are stored in a df with apprixmately 40k rows. When I save this plot to .html, the file sizes are near 100k…
Matthew Borish
  • 3,016
  • 2
  • 13
  • 25
0
votes
1 answer

Bokeh models to plot interactive addition of columns using CustomJS and CheckboxGroup

I want a CheckboxGroup to represent different columns of a dataframe. The idea is for the user to be able to add multiple column values if they select multiple columns and interactively display the sum as a plot. I have the following plot from a…
Brain_overflowed
  • 426
  • 1
  • 5
  • 21
0
votes
1 answer

Bokeh: Generate graph server side, update graph from JS client side (change data source, axes ...)

I just took Bokeh for a spin on a Django site. Lot of fine tutorials out there and really easy to get a quick example running. For example, I have a Django view that offers something like: ... # This is part of a broader Django view, simply…
Bernd Wechner
  • 1,854
  • 1
  • 15
  • 32
0
votes
1 answer

What is wrong with Bokeh image() plotting? It succeed but showed no graph

I have initially a Spark dataframe with data like that: +-------------------+--------------+------+-----+ |window_time |delayWindowEnd|values|index| +-------------------+--------------+------+-----+ |2022-01-24 18:00:00|999 |999 …
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

Filtering data source for Bokeh plot using MultiChoice and CustomJS

To preface, I have never used JavaScript. After hours of searching I still do not quite understand how to solve my particular problem. I have been utilizing bokeh to make interactive plots for a little while, and have used pandas to filter the data…
0
votes
0 answers

Link Bokeh Dropdown Widget to the bar chart

I created a dropdown widget and a bar chart, I want to filter my values based on the "categories". How do I link both the dropdown and the graph? #import essential Libs from bokeh.models import ColumnDataSource, Grid, HBar, LinearAxis, Plot from…
Myst
  • 3
  • 2
0
votes
1 answer

bokehjs with Angular: error while importing

we are trying to import @bokeh/bokehjs in angular 10 and 11 as below: import * as Bokeh from '@bokeh/bokehjs'; However we are facing below issues while compiling. Compilation error Error:…
0
votes
1 answer

Bokeh layout update on CustomJS callback

I am new to bokehJS and I need to update the plot based on dropdown values. For initial load am using below code to add arrow in layout of the plot. But, whenever I change the value on dropdown plot gets updated however arrow gets…
Pritam
  • 1,288
  • 5
  • 23
  • 40
0
votes
1 answer

Typescript linter: reference to external library

I want to write a custom component for Bokeh, that means that I have to edit a TypeScript file that is somewhat "disconnected" from its environment. My question is how to make linting work properly. Namely I have a file "component.ts" with…
Ralph
  • 163
  • 1
  • 5
0
votes
2 answers

BokehJS library missing error and no plot

I am running Anaconda 10.0 Jupyter Notebook Python 3.8, bokeh 2.3.0 on Chrome. On my other PC (should be identical setup, except this is a slightly later Anaconda version) images are fine, but on this there is no image and the Javascript console…
0
votes
1 answer

How to modify the DateTimeTickFormatter class?

import pandas as pd from math import pi from datetime import datetime as dt from bokeh.io import show from bokeh.models import DatetimeTickFormatter from bokeh.plotting import figure d = {'col1': [dt(2015, 1, 1), dt(2015, 1, 2), dt(2015, 1, 3)],…
bachree
  • 128
  • 3
  • 11
0
votes
0 answers

Bokeh Standalone chart not working in docker

i have a simple program that displays a bokeh plot in new html file from output_file() from python3.7. i also have a chart.html in templates folder with the following entries and everything works fine on local machine but the issue i am facing is…
jango5
  • 1
  • 1
0
votes
1 answer

bokeh: custom callback for hovertool for figure.line

I'm trying to write a code which adds hovertool performing customer js-code over figure.line object. In order to do it I used userguide code as example (https://docs.bokeh.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-hover)…
krouk
  • 305
  • 1
  • 2
  • 10
1 2 3
8 9