Skip to content

Improve top/bottom legend layout and sizing #2710

@nickofthyme

Description

@nickofthyme

Describe the feature:

Bottom legends are great, particularly when displaying multiple statistics. I'd like to request an improvement to make more than 3 visible at a time to make them more usable.

A few ideas to consider for addressing this:

  • allow statically defining the number of legend items to show before scrolling in the chart config
  • add an interaction to allow expanding from a collapsed list of legend items to the full list
  • allow charts to set 'expand chart to show all legend items'
  • automatically adjust the number of items in the bottom legend based on the size of the chart
  • add a flyout interaction for showing more legend items

I expect the challenging part of automatically expanding the chart or always showing all of them is that it interferes with the layout of the rest of the dashboard, so the first option listed here might be the most viable.

Describe a specific use case for the feature:

Here is an example of monitoring an OpenTelemetry collector with multiple exporters with multiple metrics for each. With just 2 exporters (a very common configuration) with 2 metrics (also common and actually minimal for success/fail) we have 4 time series.

Image

The 4th one is not visible even if the chart is made extremely tall.

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    :allApplies to all chart types:legendLegend related issue:stylingStyling related issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions