I am using EXTJs 6.5. I have designed a bar chart in which the x-axis category label length is too big which overlaps the label. So for a temporary fix, I have added below code to trim the value to 15 characters to show the values postfix with three dots.
{
type: 'category',
position: 'bottom',
fields: 'name',
renderer: function(item, label, lastLabel) {
return Ext.util.Format.ellipsis(label, 15);
}
The issue I am facing is that I am not able to add any Html content for the label for example to word wrap the label or to add any tooltip.
1. Styling
Although limited, styles can be added to the chart label. Full options here.
Example (tested in this documentation fiddle):
2. Tooltip
To add a tooltip to your label, you could do something like this:
(code snippet edited to fit you needs)