81 questions
1
vote
0
answers
49
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
109
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
428
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
1k
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
41
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
268
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
185
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
80
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
283
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 ...
0
votes
1
answer
134
views
Is it possible to link axes from different plots in pandas-bokeh package?
In regular Bokeh there is a nice feature of linking axes from different subplots in a grid which e.g. is very useful for zooming on multiple graphs simultaneously. But this doesn't seem to work in the ...
0
votes
1
answer
247
views
Implement a colored frame around graph tiles (panel bokeh) (holoViz bokeh)
How can I let bokeh draw a colored border (frame) around the graph tile? Some graph tiles have to be graphically highlighted against the other graphs and the customer therefore wants to have a colored ...
0
votes
0
answers
419
views
Bokeh plot title 'str' object is not callable
In Jupyter Notebooks I read in a dataframe and create several plots with Pandas / Bokeh.
While creating one of the latter I get an error.
Search for similar problems said, that there might be ...
0
votes
2
answers
137
views
Plot maps in python error : no arguments in initialization list
From the following files I want to do a map plot by using folium:
Polygons file: https://drive.google.com/file/d/1uhj7OyHktPseR_CtRD0vPfq8HziHA4RK/view?
Postcode variable level: https://drive.google....
0
votes
1
answer
115
views
How to rotate xticks in pandas-bokeh
.plot_bokeh(kind='bar',x='Weather',stacked=True,***xticks=?????????***)
File ~\Anaconda3\lib\site-packages\pandas_bokeh\plot.py:658, in plot(df_in, x, y, kind, figsize, use_index, title, legend, logx,...
0
votes
1
answer
2k
views
creating html output file with plot bokeh
as a very simple example when I want to export a visualisation to a html in bokeh i'd do something like this:
#importing bokeh
from bokeh.plotting import figure
from bokeh.io import output_file, show
...
0
votes
1
answer
940
views
Bokeh run time error, models must be owned by a single document
when trying to enter two datasource this error popped up.
RuntimeError: Models must be owned by only a single document, StringFormatter(id='1266', ...) is already in a doc
df_2 = pd.DataFrame({
'...
1
vote
0
answers
248
views
Plot 2D graph using Bokeh
I'm trying to plot a graph using Bokeh.
I did it using matplotlib but I can't figure out how I can plot 2D array using Bokeh.
This is my code for plotting with matplotlib:
[row, col] = point_data....
1
vote
1
answer
2k
views
How to create frequency scatter plot(like histogram but with dots instead of bars) and with optional error bars?
Does someone knows how in python(matplotlib, pandas_bokeh,...) plot frequency scatter plot with error bars, if it is called like that?
What I want is on y axis to have number of events(counts, instead ...
0
votes
1
answer
421
views
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 ...
0
votes
1
answer
229
views
How to build a values density heatmap in Bokeh for timed window occurencies calculated in Spark?
According to https://stackoverflow.com/a/48692943/1759063 it is possible to aggregate the occurence on values per time unit like that:
+---------+----------+------------------------+------------+------...
0
votes
1
answer
391
views
(pandas_bokeh) How to plot two pd.Series in a single plot in Colab?
For example, the following displays two plots. How can I draw them in a single plot?
import pandas as pd
import pandas_bokeh
pd.set_option('plotting.backend', 'pandas_bokeh')
pandas_bokeh....
0
votes
1
answer
143
views
Constant values invisible in zoomed out bokeh line plot
I'm trying to create a line plot of a ~30.000 entries long array using pandas_bokeh in jupyter-notebook but constant values seem to be invisible when
.
When I further
I can see that the data points ...
2
votes
0
answers
135
views
Bokeh code to open pop up window showing data table on button click
I am developing a web application using bokeh. My requirement is to open pop up window on button click. The pop up window should display a data table widget. Secondly, This pop up window is draggable. ...
0
votes
1
answer
851
views
Incorporating widgets with pandas_bokeh; getting "ValueError" message
I am trying to incorporate some bokeh widgets with pandas_bokeh plots within a dashboard in order to interactively update them through filtering. However, when I launch the dashboard, I get a blank ...
0
votes
1
answer
515
views
Convert panel.widgets.tables.Tabulator to layoutDOM
I'm new to Bokeh so apologies if I get the terminology wrong.
I have a simple dashboard and I'm trying to add a chart using tabulator to the page docs
The basic setup is as follows
from bokeh.models ...
0
votes
1
answer
530
views
bokeh widget does not update plot
I'm new with bokeh plots and I'm trying plot a map with a slider, but it's not updating.
I've tried many ways, but it still not updating the plot.
I'm using bokeh server and non geographic plots I've ...
0
votes
0
answers
176
views
Pandas dataframe and bokeh plot not updating with slider widget
I am trying to plot summary stats from a pandas dataframe using bokeh visualisation. My aim is to use a slider to filter the data to be plotted and to update the plot accordingly. However, when I ...
0
votes
1
answer
471
views
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 ...
0
votes
1
answer
116
views
updating pandas-bokeh charts with additional elements
I'm working in a Jupyter Notebook with pandas and pandas-bokeh.
I can create a chart no problem, but when I want to add an element (like a Span), I can't figure out how to avoid getting a second copy ...
0
votes
1
answer
571
views
Extract the max and min values from a ColumnDataSource column
I'm doing a Bokeh application in which I have an input table, some calculations are performed on it and it produces a new table. I'm trying to plot a heatmap of this new table, so I have to create a ...
3
votes
1
answer
549
views
How to update Span (Bokeh) using ColumnDataSource?
I am trying to update Span using ColumnDataSource, but the information is not being passed onto the source. Span unfortunately does not have a paremeter "source", so is there a better way?
I ...
1
vote
1
answer
432
views
Bokeh import json_item serialized JSON in Jupyter
Cross-post on Bokeh forums: https://discourse.bokeh.org/t/display-json-item-serialized-json-in-jupyter-notebook/7245/3
I've serialized my Bokeh plot to json using bokeh.embed.json_item, as described ...
0
votes
1
answer
464
views
Bokeh: Updating of legend when using different views
I have an issue with updating legend_groups in bokeh:
My data is based on four columns: x-values, y-values, categorization, geography. I created a scatterplot in Bokeh with all scatter points coming ...
0
votes
1
answer
4k
views
Plotting candlestick and volume candels in Bokeh
I have plotted the candlestick using bokeh. Now i want to plot the volume candles in the same chart?
How do I achieve that. I am reading the data from csv which has open,high,low,close and volume.
1
vote
1
answer
2k
views
Bokeh: X-axis Date format and Candle Stick graph Hover Date issues
I am new to Stackoverflow and I am trying to build a Candle stick Chart using Bokeh from python. I understand that there is a sample code in the Bokeh doc. I have tried to use the sample code and ...
0
votes
1
answer
2k
views
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 ...
2
votes
1
answer
995
views
Timeline Slider for Dataset Python Bokeh
I need ur help. I try to plot a route on a map.
The dataset consists of lon and lat. I want to include only a part of the route with a interactive solution like a RangeSlider. For example only the 2th ...
1
vote
1
answer
198
views
How to pause bokeh server updating plot based on some condition
I am using bokeh server to plot the result from my streaming frames of a video. I see Bokeh provide add_periodic_callback as an auto-update on the server, but I don't know how to pause it. Any ...
0
votes
1
answer
632
views
plot stacked bar chart using bokeh
I am trying to plot a stacked bar chart using bokeh by following this segment of the documentation.
but my data frame is a tad more complex. it looks like this:
events count Name
a ...
0
votes
1
answer
460
views
Bokeh Pandas plot using SQLite data
I am using an SQLite database with Pandas and want to display the dynamic data using Bokeh (varea_stack)
My dynamic data (df) structure looks like this:
id date site numberOfSessions ......
0
votes
1
answer
110
views
How to make area chart cover all area below it in pandas bokeh?
I tried to make an area chart with pandas-bokeh package using this code:
import pandas as pd
import numpy as np
import pandas_bokeh
df = pd.read_excel('D:/Coding Practice/data/data_corona_usa.xlsx')
...
0
votes
1
answer
299
views
How to add tooltip in pandas-bokeh area chart?
I tried to make an area chart of cummulative corona virus cases in USA. But, there is no tooltip in the area chart.
Area Chart
If i change the area chart into line chart, the tooltip appear like it ...
0
votes
1
answer
515
views
How to change tick label in pandas-bokeh plot?
I was trying to use pandas-bokeh library to make an interactive bar chart. Below is my dataframe that I want to plot.
My dataframe
After that,I plot it using this code
> df4.plot_bokeh(
> ...
0
votes
1
answer
158
views
How to show values in my pandas_bokeh chart legend?
I have a very small pandas DataFrame with two columns.
status count
0 early 2
1 on_time 2
2 late 1
3 Incomplete 9
I am trying to create a pie ...