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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow axis titles to wrap text #269

Closed
marshallpete opened this issue Apr 26, 2024 · 1 comment
Closed

Allow axis titles to wrap text #269

marshallpete opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@marshallpete
Copy link
Member

Provide a general summary of the feature here

Axis titles are sometimes longer than the width of the chart. Would be nice to be able to break an axis title up into multiple lines.

馃 Expected Behavior?

When title on an Axis is an array of strings, display each string on a new line. This is supported by Vega https://vega.github.io/vega/docs/axes/ (see title in props)

馃拋 Possible Solution

Update the type for title on Axis to support string | string[]. If it is an array, each string should be displayed on a new line.

馃敠 Context

Axis title that is wider than the chart.

馃捇 Examples

No response

馃Б Your Company/Team

Adobe/Workfront

@marshallpete marshallpete added enhancement New feature or request good first issue Good for newcomers labels Apr 26, 2024
@marshallpete
Copy link
Member Author

Fixed with above PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant