Skip to content

Ability to disable toggle visiblity behavior on legend items. #1055

@hbharding

Description

@hbharding

Is your feature request related to a problem? Please describe.
We have charts in Observability that only ever plot 1 or 2 pieces of information. Users are able to click on a legend item to toggle the visibility of data. While this feature is useful when there are many pieces of data being shown (it allows the user to focus), it doesn't seem like it provides any value when the chart only has a single legend item.

Describe the solution you'd like
A way for developers to disable the toggle capability when it's not desired.

Describe alternatives you've considered
Consistency / expected behavior might be a concern. Some charts would allow toggling visibility (current default behavior), whereas other may not. How would a user know when this toggle behavior is available?

A simple solution could be to just remove this capability when there is only a single legend item. This behavior could apply to all chart types. If more than 1 legend item exists, then the toggle visibility feature would become available.

Additional context

See screenshots

image
image

Checklist

Delete any items that are not applicable to this feature request.

  • this request is checked against already exist requests

Metadata

Metadata

Assignees

Labels

:interactionsInteractions related issue:legendLegend related issueenhancementNew feature or requestreleasedIssue released publicly

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions