Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ def create_top_discriminatory_domains_chart(df):
|
|
152 |
domain_counts_subset = domain_counts_subset.rename(columns={'Discriminative': 'Count'})
|
153 |
fig = px.bar(domain_counts_subset, x='Count', y=domain_counts_subset.index, orientation='h',
|
154 |
title='Top Domains with Discriminatory Content')
|
155 |
-
fig.update_layout(margin=dict(
|
156 |
return fig
|
157 |
|
158 |
# Function for Channel-wise Sentiment Over Time Chart
|
|
|
152 |
domain_counts_subset = domain_counts_subset.rename(columns={'Discriminative': 'Count'})
|
153 |
fig = px.bar(domain_counts_subset, x='Count', y=domain_counts_subset.index, orientation='h',
|
154 |
title='Top Domains with Discriminatory Content')
|
155 |
+
fig.update_layout(margin=dict(l=6, r=6, t=12, b=6), xaxis_title="Discriminatory Content Count", yaxis_title="Domain", font=dict(size=7))
|
156 |
return fig
|
157 |
|
158 |
# Function for Channel-wise Sentiment Over Time Chart
|