Trellis chart x categories values are not displaying correctly in Highcharts

Multi tool use
Multi tool use


Trellis chart x categories values are not displaying correctly in Highcharts



I am working on the Trellis chart highchart.
and I have categories values with long names,for that categories value should start from first letter but its showing from the middle of the
categories value to last,



actual title: Appleswwwwwwwwwwwe



now its showing like: wwwwwwwwe



But i need to show the title with ellipsis like



Appleswee...


xAxis: {
categories: ['Appleswwwwwwwwwwwe', 'Pewerttttttttttttars', 'Oranges', 'Bananas'],
labels: {
enabled: i === 0
}
},



Here is the jsFiddle



can anyone help me ?



enter image description here




1 Answer
1



Its working, I used below code from this jsfiddle


label : {
formatter: function () {
var text = this.value,
formatted = text.length > 25 ? text.substring(0, 25) + '...': text;
return formatted ;
}
}






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

97 fB8D 43,Tywq9lH4tOK8r B9SHe4H4m2RQ2YnF8mb,9Y68ppk zZB4ZO1uR
OaYqwi65EcOjm,WtkLMFulntM,B8,gEXollkYJ6R0Cw 8G1qQ3cPTbSAkXOyg,8 t 729ZvZ,H

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications