lod2025-submission commited on
Commit
1959db1
·
verified ·
1 Parent(s): 035b83d

Update dashboard.py

Browse files
Files changed (1) hide show
  1. dashboard.py +1 -2
dashboard.py CHANGED
@@ -194,13 +194,12 @@ def filter_data0(df, min_value):
194
 
195
 
196
  def plot_chord(df,min_value):
197
- hv.extension('bokeh')
198
  filtered_df = filter_data0(df, min_value)
199
  # Create a Holoviews Dataset for nodes
200
  nodes = hv.Dataset(filtered_df, 'index')
201
  nodes.data.head()
202
  chord = hv.Chord(filtered_df, ['source', 'target'], ['value'])
203
- return chord.opts(opts.Chord(cmap='Category20', edge_cmap='Category20', label_text_color="white", node_color = hv.dim('index').str(), edge_color = hv.dim('source').str(), labels = 'index', tools=['hover'], inspection_policy='nodes', width=800, height=800))
204
 
205
 
206
  def chordify_triples(rel_grouping, min_val):
 
194
 
195
 
196
  def plot_chord(df,min_value):
 
197
  filtered_df = filter_data0(df, min_value)
198
  # Create a Holoviews Dataset for nodes
199
  nodes = hv.Dataset(filtered_df, 'index')
200
  nodes.data.head()
201
  chord = hv.Chord(filtered_df, ['source', 'target'], ['value'])
202
+ return chord.opts(opts.Chord(cmap='Category20', edge_cmap='Category20', label_text_color="white", node_color = hv.dim('index').str(), edge_color = hv.dim('source').str(), labels = 'index', tools=['hover'], label_text_font_size="12pt", width=800, height=800))
203
 
204
 
205
  def chordify_triples(rel_grouping, min_val):