Superscript in jfree chart

╄→尐↘猪︶ㄣ 提交于 2019-12-24 15:35:57

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!