jqplot - superscript in axis label

馋奶兔 提交于 2019-12-04 14:38:43

You can use unicode characters for do that;

  1. "Superscript two"(\u00B2) (2)
  2. "Superscript three" (\u00B3) (³)
  3. "Superscript one" (\00B9) (¹)

try this:

      xaxis: {
      label: "Units m\u00B3"
      },

Here's another answer, with HTML entities, which also works in jqPlot:

  1. ¹ (¹)
  2. ² (²)
  3. ³ (³)

For example (m²):

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