Spaces:
Running
Running
update exam plot
Browse files- data_handler.py +6 -5
data_handler.py
CHANGED
|
@@ -59,18 +59,19 @@ def unified_exam_chart(unified_exam_df, plot_column):
|
|
| 59 |
bar_height_px = 28
|
| 60 |
|
| 61 |
fig.update_layout(
|
| 62 |
-
height=bar_height_px * len(df) + 120,
|
| 63 |
-
margin=dict(l=220, r=40, t=60, b=40),
|
| 64 |
xaxis=dict(range=[0, x_range_max]),
|
| 65 |
title=dict(text=title, font=dict(size=16)),
|
| 66 |
xaxis_title=dict(font=dict(size=12)),
|
| 67 |
yaxis_title=dict(font=dict(size=12)),
|
| 68 |
yaxis=dict(
|
| 69 |
-
automargin=True,
|
| 70 |
-
tickmode="array",
|
| 71 |
tickvals=df["Model"],
|
| 72 |
ticktext=df["Model"],
|
| 73 |
-
dtick=1
|
|
|
|
| 74 |
),
|
| 75 |
width=1000
|
| 76 |
)
|
|
|
|
| 59 |
bar_height_px = 28
|
| 60 |
|
| 61 |
fig.update_layout(
|
| 62 |
+
height=bar_height_px * len(df) + 120,
|
| 63 |
+
margin=dict(l=220, r=40, t=60, b=40),
|
| 64 |
xaxis=dict(range=[0, x_range_max]),
|
| 65 |
title=dict(text=title, font=dict(size=16)),
|
| 66 |
xaxis_title=dict(font=dict(size=12)),
|
| 67 |
yaxis_title=dict(font=dict(size=12)),
|
| 68 |
yaxis=dict(
|
| 69 |
+
automargin=True,
|
| 70 |
+
tickmode="array",
|
| 71 |
tickvals=df["Model"],
|
| 72 |
ticktext=df["Model"],
|
| 73 |
+
dtick=1,
|
| 74 |
+
autorange="reversed"
|
| 75 |
),
|
| 76 |
width=1000
|
| 77 |
)
|