You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Used to identify various chart elements: series, data points, other markings (annotations lines/rectangles)
Best practices
Labels positioned as close as possible to the elements they refer to. Direct labeling instead of separate legend
If using a legend on a bar chart, the order should be in the same sequence as the bars for easy reference
Rendered in two formats: vertically (left/right) or horizontally (top/bottom)
if horizontally places (top/bottom) than the text can be displayed with a center alignment in respect to the current chart
The amount of space used should be as minimal as possible but should be expanded when required a better readability of every item.
We should avoid when possible scrolling, the legend needs to convey a subset of information that the chart can't express directly, due to the limited space on the chart or due to the complexity of the geometries
They can be configured to be overlayed on the chart to maximize the amount of space for the chart
All these actions need to be accessible from the keyboard
It can be rendered as a table if we a numerous set of extra values are used Legend design v2 #2096
It can take up as much as space as needed, or be limited to a specific width in pixel or percentage of the chart or it can be resized with a handle. Customizable legend width #963
Legend automatic size should can be constraint to a set of values
Improved hierarchical representation on horizontal legends
Constraints
In case of a dynamic computation of space required for the Legend, it’s necessary to render or compute the width/height of the legend before rendering the chart itself. If possible, computing the required width/height is preferable, to avoid rendering the legend and the chart into two different moments in time
The same format, except the aspect, can be applied to a tooltip if necessary, both components bring in exactly the same type of information, so we should be able to reuse that component on the legend
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:
#79