Hello!
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 plotly.express as px
import pandas as pd
df = pd.read_csv('https://github.com/nchelaru/plotly-dashboard/raw/master/polar_data.csv')
fig = px.bar_polar(df, r="totalprice", theta="polar",
color="channel", animation_frame='orderyear',
color_discrete_sequence=px.colors.sequential.Plasma)
fig.show()
Thanks in advance!