Spaces:
Runtime error
Runtime error
updatea columndatasource
Browse files
app.py
CHANGED
@@ -61,13 +61,13 @@ data = {'authors': authors,
|
|
61 |
'downloads': downloads,
|
62 |
'likes': likes}
|
63 |
|
64 |
-
source = ColumnDataSource(data=data)
|
65 |
|
66 |
def display_df():
|
67 |
df = data_bokeh
|
68 |
return df
|
69 |
|
70 |
def bokehplots():
|
|
|
71 |
# set up figure
|
72 |
p = figure(x_range=FactorRange(*authors), height=350, width=600, title='Downloads and Likes by Author')
|
73 |
p.vbar(x=dodge('authors',-0.2, range=p.x_range), top='downloads', width=0.4, source=source,
|
|
|
61 |
'downloads': downloads,
|
62 |
'likes': likes}
|
63 |
|
|
|
64 |
|
65 |
def display_df():
|
66 |
df = data_bokeh
|
67 |
return df
|
68 |
|
69 |
def bokehplots():
|
70 |
+
source = ColumnDataSource(data=data)
|
71 |
# set up figure
|
72 |
p = figure(x_range=FactorRange(*authors), height=350, width=600, title='Downloads and Likes by Author')
|
73 |
p.vbar(x=dodge('authors',-0.2, range=p.x_range), top='downloads', width=0.4, source=source,
|