Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 (discrete-bar) fix charts with projected data #3077

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Jan 9, 2024

  • fixes DiscreteBar: Single-year line charts are broken for projected data #3069

  • there are two ways of fixing this:

    • setting the series strategy to column instead of entity such that – for a single country – both y-variables are plotted (they don't show up at the same time because they have no time overlap)
    • setting the facetting strategy to facet by metric (with series strategy entity). that way, we would get two distinct bar charts – one for each y-column, i.e. one for historical and one for future data – where both bar charts display a single entity

The first solution produces the better result I think.

Example: live / staging

@sophiamersmann
Copy link
Member Author

@sophiamersmann sophiamersmann marked this pull request as ready for review January 9, 2024 11:01
@sophiamersmann sophiamersmann force-pushed the fix-broken-bar-chart-with-projected-data branch from ebef6f8 to f446517 Compare January 10, 2024 10:58
@sophiamersmann sophiamersmann force-pushed the fix-broken-bar-chart-with-projected-data branch from f446517 to c24cb9d Compare January 10, 2024 12:34
Copy link

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

@github-actions github-actions bot added the stale label Jan 25, 2024
Copy link
Contributor

@danyx23 danyx23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions github-actions bot removed the stale label Jan 26, 2024
@sophiamersmann
Copy link
Member Author

sophiamersmann commented Jan 26, 2024

Merge activity

@sophiamersmann sophiamersmann merged commit 115e8af into master Jan 26, 2024
19 checks passed
@sophiamersmann sophiamersmann deleted the fix-broken-bar-chart-with-projected-data branch January 26, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DiscreteBar: Single-year line charts are broken for projected data
2 participants