Bar Graph Animation. px.bar

fig2 = px.bar(timeseriesDF, x="cases", y="countrycode", color="countrycode",
              animation_frame="date", animation_group="countrycode", range_x=[0, confirmed], orientation='h')

I’m trying animate bar graph for a “time series”. The bar graph shows the value of “countrycode” corresponding only to the very first date in the dF. For consecutive date more countrycodes are there in DF. But it never shows up in the Graph.
PS: I’m new to this forum and Plotly. Thank you