Subscript in Axis description

前端 未结 3 1859
暗喜
暗喜 2020-12-11 21:08

I wanted to know if it is possible to use subscript in axis description. I have the following code

    XYItemRenderer lineYY = new StandardXYItemRenderer();
         


        
3条回答
  •  既然无缘
    2020-12-11 22:10

    I am not sure about jFreeChart, but a pure java string could bear that, please try:

    final NumberAxis yaxY = new NumberAxis("a\u2093 [m/s²]");
    

    see: http://www.fileformat.info/info/unicode/char/2093/index.htm

提交回复
热议问题