jqplot - superscript in axis label
问题 As the title says how do I add superscript fonts to the axis labels in a jqplot graph? I tried using Javascript sup() function and also actual html tags for the titles of the axes but to no vain. Basically I need to display units like m 3 etc. Do I have to tinker with the AxisLabelRenderer or is there any obvious workaround I am missing? Thanks. 回答1: You can use unicode characters for do that; "Superscript two"(\u00B2) (2) "Superscript three" (\u00B3) (³) "Superscript one" (\00B9) (¹) try