You must be logged in to post your query.
Home › Forums › Chart Support › indexLabelFormatter newline character?
Tagged: label, Newline
Is there any character code I can insert into the return value to insert a line break?
I have a pie chart with values like
I would like a line break after the name so the percent always shows on the 2nd line, but because the length of the name varies i cannot use the indexLabelMaxWidth property.
Sorry, line-break is not supported in indexLabel as of now. However you can add multiple space in-between the words to bring it to new-line once it crosses the max-width as shown in this JSFiddle.
You must be logged in to reply to this topic. Login/Register