ngx-charts -> ngx-charts-bar-vertical xAxis labels multi line

Viewed 943

I'm using 'ngx-charts' with Angular, on My X axis labels i have long text. how can i make it wrap on a couple of lines instead of using 3 dots when text overflows?

Update:

tried to add xAxisTickFormating func :

html file:
[xAxisTickFormatting]="xAxisTickFormat"
ts file: 
xAxisTickFormat(val) {
   return val.split(' ').map(i => `${i} \n`).join('');
}
0 Answers
Related