Iโm trying to create an animated line graph with python and plotly. My data are the years from 1750 to 2018 on the x-axis and on the y-axis I have the world CO2 emissions in billions of tons (from 0 to 35). My animation_frame is on the โyearโ so we can see the evolution.
Below is my code:
fig = px.line(df_emissions_co2_world, x = "year", y = "co2_billions_t",
animation_frame = "year",
title = " CO2 billions t")
when I display the graph I donโt see any curve appear over any year. However, when I make a simple plotline without the animation I have the desired data with this code :
fig = px.line(df_emissions_co2_world, x = "year", y = "co2_billions_t",
title = " CO2 billions t")
Someone would know what the problem is?