Skip to content

Commit

Permalink
Rename variable as per suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Dec 17, 2024
1 parent 30c58b7 commit fee3ce1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def variation_chart(
target_variable, map_to="household"
)
reform_values = sim.reformed.calculate(target_variable, map_to="household")
variable_values = sim.baseline.calculate(variable, map_to="household")
axis_values = sim.baseline.calculate(variable, map_to="household")

if show_baseline:
fig = go.Figure()
fig.add_trace(
go.Line(
x=variable_values,
x=axis_values,
y=baseline_values,
mode="lines",
name="Baseline",
Expand All @@ -57,7 +57,7 @@ def variation_chart(
)
fig.add_trace(
go.Line(
x=variable_values,
x=axis_values,
y=reform_values,
mode="lines",
name="Reform",
Expand All @@ -76,7 +76,7 @@ def variation_chart(
fig = go.Figure(
data=[
go.Line(
x=variable_values,
x=axis_values,
y=reform_values - baseline_values,
mode="lines",
name="Reform",
Expand Down

0 comments on commit fee3ce1

Please sign in to comment.