Skip to content

Conversation

@aestoltm
Copy link
Contributor

@aestoltm aestoltm commented Dec 3, 2025

Description

Depends on PR #2127 . Will also require PRs on the various XDMoD modules (https://github.com/ubccr/xdmod-xsede/pull/1099 and ubccr/xdmod-appkernels#145).

Add word wrapping to long legend entries. Plotly JS does not support automatic word wrap on legends, therefore, we have to pragmatically determine the word wrap condition based on the chart div width (also including when we resize the browser window).

Before:
before

After:
after

Motivation and Context

Long legends were unviewable before, especially detrimental for exported charts

Tests performed

Tested on dev port

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aestoltm aestoltm requested a review from aaronweeden December 3, 2025 20:23
@aestoltm aestoltm added enhancement Enhancement of the functionality of an existing feature Category:Metric Explorer Metric Explorer / Usage labels Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category:Metric Explorer Metric Explorer / Usage enhancement Enhancement of the functionality of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant