Skip to content

Commit 0b114ad

Browse files
committed
Update marker size in time series plots and adjust y-axis range for improved visualization
1 parent 27c6a63 commit 0b114ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dashboard/charts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def plot_time_series(
133133
name="Metric Value",
134134
mode="lines" + ("+markers" if show_markers else ""),
135135
line=dict(color=colors["primary"], width=line_width),
136-
marker=(dict(size=6, color=colors["primary"], symbol="circle")
136+
marker=(dict(size=line_width+4, color=colors["primary"], symbol="circle")
137137
if show_markers else None),
138138
showlegend=show_legend,
139139
),
@@ -166,7 +166,7 @@ def plot_time_series(
166166
y=condition_df[condition],
167167
mode="markers",
168168
name=props["name"],
169-
marker=dict(color=props["color"], size=8, symbol="circle"),
169+
marker=dict(color=props["color"], size=line_width+4, symbol="circle"),
170170
showlegend=show_legend,
171171
),
172172
secondary_y=True,
@@ -181,7 +181,7 @@ def plot_time_series(
181181
title_text="Metric Score",
182182
secondary_y=True,
183183
showgrid=False,
184-
range=[0, 1.1],
184+
range=[0, 1.05],
185185
tickformat=".0%",
186186
**{
187187
k: v

0 commit comments

Comments
 (0)