Plotly Express not enforcing my desired range

What I’m trying to do:
Fairly simple working example of a time series graph (plot) with values over time displayed. I make a server call, that server function returns a fig, then on the client-side I set the figure attribute of a plot component. It works, but it’s not enforcing my desired range, I’m uncertain if in fact it’s not working or if there is something about sizing, padding, etc., on my client side.

My values are stated as ‘Threat Beta’

What I’ve tried and what’s not working:
I’ve tried using range in the y axis settings, also ensuring that autorange is set to false.

Code Sample:
server-side:

# this is a formatted code snippet.def Make_TBOverTime_graph(data):  
  fig = px.line(
    data,
    x='date',
    y='tb',
    title='Threat Beta Over Time',
    labels={'date': 'Date', 'tb': 'Threat Beta'},
    range_y=[0,2]
  )
  
  fig.update_yaxes(autorange=False)
  
  return fig

Here is my data:
[{‘tb’: ‘1.39’, ‘date’: datetime.date(2024, 4, 9)}, {‘tb’: ‘1.60’, ‘date’: datetime.date(2023, 9, 28)}, {‘tb’: ‘1.60’, ‘date’: datetime.date(2023, 9, 28)}, {‘tb’: ‘1.09’, ‘date’: datetime.date(2023, 1, 27)}, {‘tb’: ‘1.29’, ‘date’: datetime.date(2023, 1, 19)}, {‘tb’: ‘1.47’, ‘date’: datetime.date(2023, 1, 10)}, {‘tb’: ‘1.44’, ‘date’: datetime.date(2022, 10, 20)}]

Clone link:
(plotly_express_test)

Unbelievable… but ChatGPT helped me identify the issue - in my data I’m passing the values as strings - casting them as float fixed the issue. Sigh…