leavoigt commited on
Commit
38f04fc
1 Parent(s): 2f12850

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +18 -5
appStore/vulnerability_analysis.py CHANGED
@@ -138,11 +138,24 @@ def vulnerability_display():
138
  df_bar_chart = df_label_count[df_label_count['Label'] != 'Other']
139
 
140
  # Bar chart
141
- fig = px.bar(df_bar_chart,
142
- x='Label',
143
- y='Count',
144
- title='How many references have been found for each group?',
145
- labels={'Count': 'Frequency'})
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  #Show plot
148
  st.plotly_chart(fig, use_container_width=True)
 
138
  df_bar_chart = df_label_count[df_label_count['Label'] != 'Other']
139
 
140
  # Bar chart
141
+ fig = go.Figure()
142
+
143
+ fig.add_trace(go.Bar(
144
+ y=Label,
145
+ x=Count,
146
+ orientation='h',
147
+ marker=dict(color='purple'),
148
+ ))
149
+
150
+ # Customize layout
151
+ fig.update_layout(
152
+ title='Number of references to each group',
153
+ xaxis_title='Number of references',
154
+ yaxis_title='Group',
155
+ )
156
+
157
+ # Show the plot
158
+ #fig.show()
159
 
160
  #Show plot
161
  st.plotly_chart(fig, use_container_width=True)