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
8
votes
1 answer

How do you change ticks label sizes using Python's Bokeh?

I am new to bokeh and I'm trying to plot some data in a line plot. The x-axis, y-axis and thus the ticks should have a different size than default. Here is an example of my code: from bokeh.plotting import figure, show from bokeh.models import…
leo8a
  • 83
  • 1
  • 8
8
votes
1 answer

Enable touch scrolling for mobile view, Bokeh app

I have a web app, created using Bokeh and hosted on Heroku. I recently created a mobile style for the app, viewable here: https://btac-web-plots.herokuapp.com/avyview?style=snowpacktracker-mobile However, when viewed on an iOS mobile device, the…
pjw
  • 2,133
  • 3
  • 27
  • 44
8
votes
2 answers

Add tooltips to bokeh stacked bar plot

Considering a vertical stacked bar plot in which every column is composed of multiple bars (segments). Is it possible to add a tooltip on every segment? At the moment the same tooltip is attached to the all the segments that compose the column. from…
Mihai
  • 189
  • 2
  • 10
8
votes
1 answer

Zoomable Treemap in Bokeh

I was wondering if anyone had any links to work for a zoomable treemap in Bokeh. Similar to the Mike Bostock example: https://bost.ocks.org/mike/treemap/ In particular: there doesn't seem to be (as yet) a treemap layout in Bokeh, perhaps this…
user1462620
  • 288
  • 2
  • 9
8
votes
1 answer

bokeh DataTable with conditionally colored cells

I want to display a DataTable in bokeh, where the cells are either red or orange, according to the text content of the cell. For example, if the cell contains the word "error", then the cell is displayed in red background. If the cells contains the…
Carmellose
  • 4,815
  • 10
  • 38
  • 56
8
votes
1 answer

Bokeh plots just bring up a blank window

So I've been trying to learn Bokeh recently and everything was going well but suddenly whenever I try and make a Bokeh plot the browser just shows a blank page. I get no error codes just the blank page. This is with programs that I was…
BikeControl
  • 179
  • 2
  • 9
8
votes
5 answers

ImportError: No module named _ctypes. Google app engine with bokeh plot

Python 2.7.13 Windows 10 64 bit I've been working through this Udacity web dev course and wanted to try embedding a simple bokeh plot into a web page using this example. Running dev_appserver.py gives the error: ImportError: No module named…
joga
  • 207
  • 2
  • 4
  • 10
8
votes
1 answer

How to display static images in Bokeh using Div

In my Bokeh server based project I have to use/add a few images that are within the Bokeh project folder. I created a static folder called "static/" within the project folder and basically my code looks like this: div_img_html = "
Andrei Damian
  • 101
  • 1
  • 4
8
votes
1 answer

Python Bokeh table columns and headers don't line up

I am trying to display a table in a jupyter notebook using python and the visualization library Bokeh. I use the following code to display my table in an jupyter notebook where result is a dataframe: source = ColumnDataSource(result) columns = [ …
klib
  • 697
  • 2
  • 11
  • 27
8
votes
2 answers

How to create a multi-line plot title in bokeh?

How do you create a multiline plot title in bokeh?... same question as https://github.com/bokeh/bokeh/issues/994 Is this resolved yet? import bokeh.plotting as plt plt.output_file("test.html") plt.text(x=[1,2,3], y = [0,0,0], text=['hello\nworld!',…
asdf
  • 836
  • 1
  • 12
  • 29
8
votes
2 answers

How to control the z-order of glyphs in Bokeh?

I've been looking through the examples, docs and google and I can't find an example or explanation of how to do this simply... I'm using the JavaScript library directly, and when I add a glyph to the plot, I just want to specify an order that this…
jms
  • 172
  • 1
  • 8
8
votes
1 answer

multi_line hover in bokeh

As in this question: Bokeh multi_line and HoverTool I found that hovertool is not implemented for multi_line plots which is a bit of a setback. This is mentioned under 'warnings' here:…
plaindev
  • 131
  • 1
  • 1
  • 9
8
votes
2 answers

Embedding multiple bokeh HTML plots into flask

I've searched for the past 3 hours on the bokeh website and stack overflow but none of it is really what i was looking for. I've generated my plots already, and have them in html files. All i want to do is embed the plots into my dashboard in a…
Wboy
  • 2,452
  • 2
  • 24
  • 45
8
votes
2 answers

How to add HoverTool to a Data Table (Bokeh, Python)

I am experimenting with bokeh data table. Is it possible to add HoverTool to each field in bokeh table? An example of DataTable- And and example of how HoverTool works-
Vasile
  • 801
  • 2
  • 13
  • 31
8
votes
1 answer

Bokeh: implementing custom javascript in an image plot

I am trying to combine these two examples in Bokeh: http://docs.bokeh.org/en/latest/docs/gallery/image.html http://docs.bokeh.org/en/latest/docs/user_guide/interaction/callbacks.html#customjs-for-widgets The idea seems simple. I want to plot the…
Casey P
  • 140
  • 1
  • 9