Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: make plotly charts have unbounded hoverlabel name length #5661

Merged

Conversation

stevenhao
Copy link
Contributor

@stevenhao stevenhao commented Nov 30, 2021

Summary

Make all plotly charts have uncapped hover label name length.

The default value for this is 15, which is not very convenient for most charting use cases.

i found that a similar line of code used to exist in this repo, but removed (possibly unintentionally): 50f817e

Related issue:
plotly/plotly.js#460

Testing

  • updated frontend unit test fixtures
  • testing via netlify previews

This PR's preview
image

Some other preview
image

Configuration

Instead of hardcoding this setting, we could also make it a chart option. This may be a safer, less intrusive way to support this functionality. However, I personally think -1 is a better default than 15.

Versioning

I didn't bump any version numbers; will leave to maintainers to advise on how to proceed here

@stevenhao stevenhao changed the title make plotly charts have unbounded hoverlabel name length Fix: make plotly charts have unbounded hoverlabel name length Nov 30, 2021
@stevenhao
Copy link
Contributor Author

Please let me know if there's anything I can help with to move this PR forward!

@susodapop susodapop self-assigned this Dec 13, 2021
Copy link
Contributor

@susodapop susodapop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I tested on my machine and works like a charm. Thanks!

@susodapop susodapop merged commit 8ef9a1d into getredash:master Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants