Spaces:
Sleeping
Sleeping
Update appStore/vulnerability_analysis.py
Browse files
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 =
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|