Spaces:
Sleeping
Sleeping
Update chart_generation.py
Browse files- chart_generation.py +1 -1
chart_generation.py
CHANGED
@@ -18,7 +18,7 @@ def create_bar_plot(file, x_values, y_values):
|
|
18 |
plt.ylabel('Count')
|
19 |
else:
|
20 |
count_df = df.groupby(['Simple_Source', y_values]).size().unstack(fill_value=0)
|
21 |
-
fig, ax = plt.subplots(figsize=(
|
22 |
|
23 |
count_df.plot(kind='bar', stacked=True, ax=ax)
|
24 |
|
|
|
18 |
plt.ylabel('Count')
|
19 |
else:
|
20 |
count_df = df.groupby(['Simple_Source', y_values]).size().unstack(fill_value=0)
|
21 |
+
fig, ax = plt.subplots(figsize=(16, 7))
|
22 |
|
23 |
count_df.plot(kind='bar', stacked=True, ax=ax)
|
24 |
|