leavoigt commited on
Commit
897a5b5
1 Parent(s): e692c88

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +7 -0
appStore/vulnerability_analysis.py CHANGED
@@ -127,6 +127,13 @@ def vulnerability_display():
127
  # Merge the label counts with the df_label DataFrame
128
  df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
129
  st.write("df_label_count")
 
 
 
 
 
 
 
130
 
131
  # # Configure graph
132
  # fig = px.pie(df_labels,
 
127
  # Merge the label counts with the df_label DataFrame
128
  df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
129
  st.write("df_label_count")
130
+
131
+ # Bar chart
132
+ fig = px.bar(df,
133
+ x='Label',
134
+ y='Count',
135
+ title='How many references have been found to each group?',
136
+ labels={'Count': 'Frequency'})
137
 
138
  # # Configure graph
139
  # fig = px.pie(df_labels,