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

Admin: Add support for manually ordering legend items in maps #2710

Open
Tracked by #3561
sophiamersmann opened this issue Oct 6, 2023 · 2 comments
Open
Tracked by #3561

Comments

@sophiamersmann
Copy link
Member

sophiamersmann commented Oct 6, 2023

  • Authors often want the items in the map legend to appear in a certain order
  • Adding support for ordinal indicators (see feature(baking): add variables.type column that explicitly specifies type information #2039) would help with that in some cases (if the data is actually ordinal and could be encoded as such)
  • But sometimes, the data is not ordinal, but authors want the items in a map legend to be ordered in a certain way for clarity
    • for example, here, the countries should be listed first, followed by "Multiple colonizers", "Colonizer" and "Not colonized"
    • since specifying a manual order in the admin is not possible, authors edit the data (e.g. prepend numbers) to control the order (see here for an example)
      • usually, these values (with for example, numbers prepended) shouldn't surface in the UI; they don't in maps if the "Show custom label in the tooltip, instead of the numeric value" checkbox is ticked, but they do show up in tables (example), which is not optimal
    • editing the data is only necessary because ordering legend items in the admin is not supported
    • if we supported ordering legend items, authors wouldn't need to edit the data to achieve a certain order, and we also wouldn't have to deal with the fact that the values shown in the map are sometimes different from the values shown in the table

Examples:

Slack discussion

@ikesau
Copy link
Member

ikesau commented Oct 17, 2023

It would also be nice to be able to specify this as another type of display data in the ETL for categorical data.

@danyx23 you have some thoughts on this and how it relates to #2039?

@danyx23
Copy link
Contributor

danyx23 commented Oct 3, 2024

We are downgrading this issue since you can now mark a value as ordinal in the ETL and give a preferred sort order. This is not really an ordinal variable of course but we think it's a decent workaround for these cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants