Text wrap/text truncation for chart labels
Our product is facing an issue with our charts functionality.
The bar charts appear as desired when the vertical axis labels are short. However, once the labels become too long, it starts to push the bar charts to the right, causing it to be smaller than desired.
I would like to know if there is a method to text wrap the vertical axis labels.
For our pie charts, they shrink once the items in the legend exceed a certain number and I would like to know if there is a way to force the legend box to be a fixed height and width such that if there are too many items, the user will need to scroll down.
This is an example of the charts I'm getting. I'm wondering if I can get the bar chart to truncate the labels with "..." earlier, maybe after 10 characters.
As for the pie chart legend, I'm wondering if I can get the legend to only list 5 before making the user scroll.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I was looking for online help for this and found this article : http://pdn.pega.com/node/21656
Under the "Adding data to the chart" section the below portion seems relevant here.
"'A small gear icon appears to the left of the each drop zone. Click the icon to display the Data Settings form. Here you can specify formatting and other options that are specific to the column in the drop zone "
Find below screenshot.
You need to specify a suitable format for styling ( and wrapping ) of the text
Keep up to date on this post and subscribe to comments
- Labels' text is wrapping to 2nd line using "Stacked with labels left" dynamic layout
- Label Text Not Wrapping in Pega Mobile
- Pega Chart issue: When user mouse over on the bar chart, tool tip display same label name twice
- Column label is truncated in IE, but working fine in Chrome
- Truncate text to 17 characters followed by 3 dots and hover need to display the complete text