How does plotly compare the data when updating frames?

I am trying to create a Stacked Area Chart with Slider Steps.

I’ve added Slider Steps to almost every chart now, but this one simply refuses to work. I’ve been struggling for the past two days.

How does plotly compare data when updating frames ?
Because the first frame works only on initialization and after moving the slider, the first frame takes data from the other frames. Its like it is not updating.

It is identical to my other charts. The only difference is that the slider were numbers, like years, and now they are strings.

Can it be due to the data being almost similar ?

Here is the X axis data for the first frame:

Array(20)
[25.75, 23.03, 24.23, 23.19, 26.48, 25.18, 24.55, 25.75, 28.41, 23.78, 31.82, 22.77, 25.65, 26.73, 23.5, 22.64, 29.88, 27.52, 25.91, 24.04]

And here is the X axis data for the second frame:

Array(20)
[25.81, 23.37, 24.33, 23.21, 26.82, 25.07, 24.62, 25.9, 28.4, 23.98, 31.83, 22.92, 25.71, 26.87, 23.5, 22.49, 29.8, 27.52, 25.93, 23.95]

As you can see the data is pretty similar between the first frame and the second and only the decimals differ.
Can this be the cause ?