One very common question is how to wrap text so the text fits within an object. This can be done with all text objects in the ZingChart library.
First, you need to set a fixed with for the object in which you want to wrap the text.
Then simply set wrapText: true
width: 40, wrapText: true
In the demo below we have use 3 methods to address text length.
- Set the object width and the wrapText attribute
- Simply place a <br> tag within the text string to force a break
- Limit the number of characters which will be displayed