Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Some categories are not shown in polar bar chart #153

@nchelaru

Description

@nchelaru

Hello!

Fantastic work on the Plotly Express package! :)

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions