Questions tagged [bokeh]

Bokeh is a library for interactive visualization (including streaming or large datasets) that targets modern web browsers for presentation, and high level languages such as Python, Scala, and R for use.

Bokeh is an interactive visualization library for high level languages such Python, R and Scala, that natively targets modern web technologies. It is easily embeddable in common web-frameworks and can be used for standalone interactive documents, or server-backed data applications for large and streaming datasets.

4729 questions
1
vote
1 answer

Remove border/line around hvplot?

Is there a way to remove the border line around a plot created with hvplot/bokeh? import pandas as pd import hvplot.pandas df = pd.DataFrame({'x': [0, 1, 2, 3, 4, 5], 'y': [1, 1, 2, 2, 3, 4]}) df.hvplot.line(x='x', y='y') This example results in…
25334
  • 25
  • 4
1
vote
2 answers

bokeh: change line width on hover in multi line graph

I have a graph with multiple lines. I want to make a line in bold when hovered. Other lines should be untouched. In the example below, the tooltip works fine, but the hover_glyph doesn't. If I hover one line then both lines are getting wider. If I…
hopeman
  • 153
  • 1
  • 9
1
vote
0 answers

How to show axis coordinate information on a bokeh plot?

I currently have Hover implemented but it's a hassle with so much information to show. That's why I need to make an axis for my bokeh figure() that shows at the end the information of my axes, Date and Price. I have tried with crosshair but it only…
forraxa
  • 11
  • 2
1
vote
1 answer

Bokeh ColumnDataSource Error when identifying as source - why?

I'm getting error messages when identifying ColumnDataSource as my source, want to do it right. Let me show the errors. First, I generate some random data in a DataFrame and put it into the ColumnDataSource: col_list =…
Programming_Learner_DK
  • 1,509
  • 4
  • 23
  • 49
1
vote
0 answers

Create hover tooltips over widgets in bokeh html apps

With Bokeh in Python, it is easy to create informative tooltips for the data in plots. How can I create and customize hover tooltips for widget elements in the resulting webpage? All the searching about hover tooltips for Bokeh lead to plot…
Azrael_DD
  • 171
  • 9
1
vote
1 answer

Bokeh Server not finding images

I'm trying to achieve the seemingly simple thing of showing a picture in a Bokeh Server. [It works just fine for me when I do this in a Jupyter Notebook, by the way.] My file layout is logo.png server_folder/ main.py logo.png static/ …
Aziuth
  • 3,652
  • 3
  • 18
  • 36
1
vote
1 answer

Creating more than 4 stacked line charts with bokeh interactive legends

I was consulting the bokeh user guide (link) on creating interactive legends (see subsection on "Hiding glyphs"). The code given allows me to create up to 4 stacked line charts. For example, if I try to create a fifth line chart ("AAP"): p =…
Ebbinghaus
  • 95
  • 6
1
vote
1 answer

Nested pie chart in bokeh

I'm trying to achieve the following o/p from bokeh which is deprecated now. In the new structure, I need to layer everything like working in HTML. Is there any simplified example like this bokeh pie chart(deprecated) ?
ArulRulzz
  • 87
  • 6
1
vote
0 answers

Customising Categorical axis labels in Bokeh 3 (showing every nth one), or otherwise labeling duration bins sensibly

I have Bokeh histogram plots showing the number of events in duration bins. Basically we're measuring visit durations to a site and they are typically a few minutes, so we've divided the data into 30 second bins labelled like "0:00-0:30",…
Bernd Wechner
  • 1,854
  • 1
  • 15
  • 32
1
vote
1 answer

Sum data inside selection in bokeh image plot

I am starting with bokeh and I wonder if anyone could point me in the right direction. I have an image (2D array). Using the gallery example: import numpy as np from bokeh.plotting import figure, show from bokeh.models import ColumnDataSource,…
Delosari
  • 677
  • 2
  • 17
  • 29
1
vote
1 answer

Legend for gridded Holoviews visualization with categorical data

I'm using the holoviz xarray extension (holoviews.xarray) to visualize a gridded dataset with landcover classes. Plotting the data is straightforward with da.hvplot(). This results however in a continuous colormap with standard tick labels, whereas…
sir_olf
  • 11
  • 4
1
vote
0 answers

Clear Memory after holoviews and bokeh plot (during loop)

I try to export many holoviews plots as png in a loop. My problem is, that after the export of a singular image, the memory is not freed and so, after some iterations, the process kills itself or my pc freezes because the RAM overloads (OOM). Here…
Debroize
  • 29
  • 2
1
vote
1 answer

Stacked and nested categorical bar in bokeh, case for n repeated series

I am trying to get to something like this but with more cats for each scenario (I have 4 scenarios but many cats): I can only achieve this when the number of 'Cat's is equal to the number of 'Scenario's. I don't fully understand how the factors…
Brain_overflowed
  • 426
  • 1
  • 5
  • 21
1
vote
0 answers

Bokeh, move glyph to front on click

I am working on a graph visualization and I need a way to interact with a bokeh figure in such a way that clicking on a glyph brings it to the front. My data is as follows. For nodes: x_axis y_axis Supplier 1 -2.0 …
Lorenzo Gutiérrez
  • 105
  • 1
  • 1
  • 10
1
vote
1 answer

Error while running bokeh server in dev mode

When running: bokeh serve --dev --show my-bokeh The server starts and it works, but when I update the code of the application I expected it to refresh cause the "--dev" flag but it doesn't update and I'm getting this error: …
Ziur Olpa
  • 1,839
  • 1
  • 12
  • 27