Data categories disappear when enable Plotly Express animation for polar bar chart


I am trying to make a polar bar chart using Plotly Express, and have the chart animate by the year. The chart is supposed to show a breakdown of the various marketing campaigns (“AD”, “WEB”, “INSERTS”, etc) for each geographical region (“North”, “Northwest”, “Southwest”, etc).

Strangely, in some of the later years, the animated chart does not display data from certain categories like “WEB”, even though the data exists and these categories were displayed for the earlier years.

Here is a minimal example:

import as px
import pandas as pd

df = pd.read_csv('')

fig = px.bar_polar(df, r="totalprice", theta="polar",
                  color="channel", animation_frame='orderyear',

Thanks in advance!