Open markov00 opened 4 years ago
One very useful action that could be taken in a legend is renaming/aliasing the field. We don't support aliases today; however, it would be great to have a field alias or "rename" capability right from the legend eventually.
hey @VijayDoshi definitely this is something that we can support, as for the color picker we can also specify something to change the series name. Unfortunately, the usage of this feature depends on the Editor that is currently rendering/configuring the chart, that most of the time configure these properties in different ways:
Probably, these different ways of changing names/colors were using the assumption that the legend can be defined as 'hidden' on the editor itself, hiding the legend and making it impossible to change these properties from there. I personally think that the legend, when editing a chart, is a meaningful part of the visualization that should always be rendered (independently if it will be hidden or not on a dashboard) so that the user can interact directly at the source and not through an intricate set of menus and submenus.
One other request for legends is some control over legend sorting. Options might be Alphabetical, Manual (like I might want "United States" as the first value in the legend - because, of course everything is US centric, right), by some Metric other than the one on the value of the associated numeric axis.
Agree that direct interaction is very useful. In the manual sort above someone who is not US centric should be able to sort what they care about to the top via a drag and drop - ideally it is persisted for that user, but that may need to wait.
Legend
The current legend design doesn't scale well. I'm collecting a set of features, constraint, and issues that need to address when redesigning the legend
Scope
Best practices
Features
Constraints
Discussions
Other related issues: https://github.com/elastic/elastic-charts/issues/79