81 questions
1 vote
0 answers
48 views
How to update and render Bokeh plots immediately, without reloading, using AJAX JS?
So I am working on a dashboard in which there are bunch of KPIs and Graphs. The dashboard have filters that when applied, filter whole dashboard. Before I was totally reloading the page and every ...
1 vote
1 answer
106 views
How to Create a Dynamic Stacked Bar Chart in Bokeh with Variable Excel Inputs and Outputs
I am currently working on a data visualisation project. I need to create a stacked bar chart using Bokeh. The data is sourced from an Excel file that is updated regularly and contains multiple inputs ...
0 votes
1 answer
72 views
How to make the year appear on the x-axis using bokeh
I have a csv file, and is trying to make the year appear on the x-axis, but the year is unable to appear. from bokeh.plotting import figure from bokeh.io import output_file, output_notebook, show from ...
1 vote
2 answers
165 views
Setting initial zoom with Bokeh
Suppose I have the following bar plot from the documentation: from bokeh.io import show, output_notebook from bokeh.plotting import figure output_notebook() Here is a list of categorical values (or ...
1 vote
1 answer
425 views
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 ...
0 votes
1 answer
997 views
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 ...
0 votes
1 answer
38 views
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 ...
0 votes
1 answer
266 views
Bokeh: Open a new data table with each time a point on plot is clicked
I have two data sources with the same keys. Source 1 has key/value pairs with unique keys to be plotted. Source 2 has the same keys as source 1, but each with potentially multiple values. Is it ...
7 votes
5 answers
13k views
"AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width " with pandas_bokeh
I am trying to use pandas_bokeh to create a line graph with a pandas dataframe I call bucketed_df import pandas_bokeh pandas_bokeh.output_notebook() bucketed_df.plot_bokeh(kind='line') for some ...
0 votes
1 answer
181 views
How to open gmap via bokeh in a zoom value that will show all markers?
I run the following code, displaying google map via bokeh with markers on the map: gmap_options = GMapOptions(lat=lat, lng=lng, map_type=map_type, zoom=zoom) p = gmap(...
2 votes
0 answers
180 views
Using local files in bokeh.plotting
I am using bokeh to display pins on a map and want when hoovering to display a JPG. The code below works well when the image is from the internet (i.e. with a URL) but how can I make it work if the ...
0 votes
1 answer
131 views
Plot a line on a curve that is undersampled
I was wondering if there was a way to color a line to follow the curve from the user specified input. Example is shown below. The user wants to color a line that starts from x = 11, to x = 14 (see ...
0 votes
0 answers
78 views
I can't seem to get my dates to work on Bokeh, plot is messed up
So I'm trying to learn Bokeh, using Jupyter notebooks. When I use this code it works great: '''' X=tesla['Date'] Y=tesla['Close'] output_file('time.html') #output file, have to import fig=figure(...
0 votes
0 answers
491 views
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 ...
0 votes
1 answer
279 views
Does Hovertool/tooltip work with pandas df or only with ColumnDataSource
Pretty new to Bokeh. Plotting a barplot (after importing pandas_bokey) works well. But... I want to change the hoover tooltips. Question: should hoover tooltip work with a pandas df in Bokeh or must ...