hlnicholls commited on
Commit
e23f72c
·
1 Parent(s): f9141ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -142,11 +142,11 @@ if len(gene_list) > 1:
142
  feature_order = feature_order[-min(max_display, len(feature_order)):]
143
  text = gene_list
144
  text = iter(text)
145
- for i in range(1, len(plotly_fig['df_shap']), 2):
146
  t = text.__next__()
147
- plotly_fig['df_shap'][i]['name'] = ''
148
- plotly_fig['df_shap'][i]['text'] = t
149
- plotly_fig['df_shap'][i]['hoverinfo'] = 'text'
150
  colorbar_trace = go.Scatter(x=[None],
151
  y=[None],
152
  mode='markers',
 
142
  feature_order = feature_order[-min(max_display, len(feature_order)):]
143
  text = gene_list
144
  text = iter(text)
145
+ for i in range(1, len(plotly_fig['data']), 2):
146
  t = text.__next__()
147
+ plotly_fig['data'][i]['name'] = ''
148
+ plotly_fig['data'][i]['text'] = t
149
+ plotly_fig['data'][i]['hoverinfo'] = 'text'
150
  colorbar_trace = go.Scatter(x=[None],
151
  y=[None],
152
  mode='markers',