Incubator-superset: Make it posible to sort legends by name or custom sort

Created on 19 Jun 2020  路  5Comments  路  Source: apache/incubator-superset

Is your feature request related to a problem? Please describe.
Legends label is not sorted in the same order every time, it depends on count

ie:
Visualization Type: Pie Chart
Metric: COUNT_DISTINCT(unitId)
The count of unitId will determin the sort of legends/labels
The sort order will change over time as the unitId count changes.
Not posible to have static order of legends/labels

Describe the solution you'd like

  1. Posible to sort in alphabetical order
  2. Dictate sort based on label names (query result)

Additional context
Superset version: 0.36.0

request inactive

Most helpful comment

Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 5 comments

Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.96. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

bump

I would also like to have the ability to determine the sorting order of the legends in the chart types that can have legends. This is especially useful when working i.e. with data buckets or categories that express a certain gradation (e.g. "minor damage", "considerable damage", "heavy damage" etc).

It would be nice to have this in a future update. :-)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

Was this page helpful?
0 / 5 - 0 ratings