Can X-Axis label be automatically truncated based on pixel width instead of the number of letters #32107
Unanswered
jiangdongxiaobaiban
asked this question in
General
Replies: 1 comment
-
You can try setting the enableReflow property to true so that no labels overlap with each other. This property uses the pixel based width instead of number of chars. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
![image](https://private-user-images.githubusercontent.com/29893437/352051383-73cf0e6c-9a50-452b-b2b3-7dae7ca6ae87.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDQxODEsIm5iZiI6MTczOTM0Mzg4MSwicGF0aCI6Ii8yOTg5MzQzNy8zNTIwNTEzODMtNzNjZjBlNmMtOWE1MC00NTJiLWIyYjMtN2RhZTdjYTZhZTg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA3MDQ0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiMDY5NGM3ZTdkYWY5ZjUzYWRjMTZjMzFlNGU0NzY3YmVlMzA3YWY4MDA3M2NiMmM5ZmI4ZDBhNjNjMGY4YmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hEUtgLm-TxUuyfAaOytevq_qpGN5fpegtILZbIJBTwY)
As you can see, the current implementation of truncation relies on
noOfCharsToTruncate
which depends on the count of letters.Given that each letter has a different width, it may caused overlap in X-axis label.
Do we have a plan to truncate or wrap to a new line based on width instead of letter count
Beta Was this translation helpful? Give feedback.
All reactions