View Full Version : Superscript on Chart Titles

3 Jul 2013, 11:27 PM
How to I user superscript or subscript in the Draw library, specifically on chart titles?

So if I want Metres3 (cubed) or SomethingElse2 (squared)

SVG allows this through the baseline-shift="super" property, just wondering the syntax to do this in Sencha libraries.

9 Jul 2013, 1:33 PM
I'm not really seeing a way to do that. But, I googled to find some reference example using baseline-shift and was coming up short there, too.

24 Sep 2013, 7:38 PM
As this would be a common requirement, I wonder if using the text utility classes we can overlay two text layers, one with a smaller font, then leave a space where the character goes and superimpose one over the other to 'look' like it is superscript/subscript.

I'll work on a mixin for charts.

Guess this should be moved to bugs also so I can file a feature request.