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

Show only important sources in summaries #2798

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Oct 19, 2023

This PR introduces two different ways to iterate over the sources of a chart - a columnsWithSourcesExtensive and columnsWithSourcesCondensed. When rendering the sources at the bottom of the chart we want to only show the most relevant ones (i.e. hide stuff like population used for sizing a scatter) - for this we use the Condensed version. When showing the sources tab we use the Extensive so that all our sources are rendered there.

This is related to #2755 and fixes these points:

  • Following Ed's suggested (it seems we already decided about it at some other time in the past) scatter plots should not show population in the footer of the chart, but they should show population in the sources tab (in "Data published by").

Base automatically changed from 10-17-misc-allow-tmux-shell-override to master October 19, 2023 16:55
@danyx23 danyx23 force-pushed the 10-17-data-pages-fix-rendering-issues branch from 6537b57 to dae7b95 Compare October 20, 2023 13:48
@danyx23 danyx23 force-pushed the 10-17-data-pages-fix-rendering-issues branch from 7f474fe to a4e60c6 Compare October 23, 2023 08:07
@danyx23 danyx23 changed the title data-pages-fix-rendering-issues Show only important sources in summaries Oct 23, 2023
@danyx23 danyx23 marked this pull request as ready for review October 23, 2023 08:23
Copy link
Member

@sophiamersmann sophiamersmann left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Nit: Maybe it would be nice to always specify columns in the same order? (probably the order you're using for the extended list of source columns)

Copy link
Contributor Author

danyx23 commented Oct 24, 2023

Merge activity

@danyx23 danyx23 deleted the 10-17-data-pages-fix-rendering-issues branch October 24, 2023 16:28
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.

2 participants