Amcharts Horizontal Bar Chart Label Issue

571 views Asked by At

the load bullet text is getting trimmed automatically. We tried multiple options but it doesn’t seem to work. Please advise.

var labelBullet = series.bullets.push(new am4charts.LabelBullet())

labelBullet.label.horizontalCenter = "left";

labelBullet.label.dx = 10;

labelBullet.label.text = "{valueDisplay}";

enter image description here

labelBullet.locationX = 0;

labelBullet.minWidth = 20; -- tried this

labelBullet.width = 200; -- and this as well

If we choose location = 1, then also it is getting cut

1

There are 1 answers

1
camer0 On

I believe you can simply say:

labelBullet.label.truncate = false;
labelBullet.label.hideOversized = false;

More info here!