Hi, I'm on an XYChart in Perspective 8.1.28
I would like to define a fixed size for my xAxes label, so that the long length labels don't shrink totally the grid itself.
Any idea ?
Thanks in advance
.
Hi, I'm on an XYChart in Perspective 8.1.28
I would like to define a fixed size for my xAxes label, so that the long length labels don't shrink totally the grid itself.
Any idea ?
Thanks in advance
.
There is a wrap property that you can add in.
I couldn't get it to work on my test setup but there may be some other problems with my chart.
The wrap property does wrap the text indeed.
But is there a way to get a fixed width of the overall xAxes label area ?
I don't think so.
The XY Chart component is based on the AM Charts third-party XY Chart. Their documentation is very good and you can see on the page linked below that they have a maxWidth property for the X-axis labels. I suspect that this is not implemented / exposed on the Ignition implementation of the component.
https://www.amcharts.com/docs/v4/tutorials/wrapping-and-truncating-axis-labels/
Thanks @Transistor, indeed the maxWidth property of amChart doesn't seem to change the wrap width in Ignition.
I'm still looking forward to a solution : any input would be helpful
In the meantime I'm using a rotation = - 45