ysharma HF Staff commited on
Commit
d58b5ce
·
1 Parent(s): 05d5cf6

updatea columndatasource

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,