XYTextAnnotation multiline/line-wrap

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
gliesian
Posts: 6
Joined: Tue Dec 03, 2013 9:50 pm
antibot: No, of course not.

XYTextAnnotation multiline/line-wrap

Post by gliesian » Mon Jul 14, 2014 5:13 pm

'ello,

How would one do line-wrapping (e.g., multi-line) with XYTextAnnotation?

Thank you very much,
Robert

ricochet99
Posts: 8
Joined: Tue Jun 23, 2015 2:37 pm
antibot: No, of course not.

Re: XYTextAnnotation multiline/line-wrap

Post by ricochet99 » Thu Jun 25, 2015 9:02 am

I found this class yesterday (https://github.com/JeremyMcCormick/jfre ... ation.java) and added TextAnchor support in a fork:

https://github.com/rivella50/jfreechart ... ation.java

Works perfectly for me:
Image

Locked