问题
I have a x-y axis in jfree chart. In legend I want to use superscript(A/B^2) is there any solution for this?I found something for labels but how does it work for jfreechart?
回答1:
You can use Unicode, e.g. A/B².
Addendum: For more complex rendering, consider one of the org.jfree.chart.annotations suitable for imaging, such as XYDrawableAnnotation
, XYImageAnnotation
, XYDataImageAnnotation
.
来源:https://stackoverflow.com/questions/6657538/superscript-in-jfree-chart