-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Superscript for html Canvas? (e.g. 2 ^ 3) #521
Comments
Hi, I've checked on the web, but apparently special characters (like ² and ³) cannot be displayed on Canvas and tags are not allowed in canvas text. I've no simple solution for you... Working with the add-ins "shapesInChart" could be a bypass but not really easy to use for such a request. Perhaps someone else will have a solution... François https://github.com/FVANCOP/ChartNew.js/wiki/900_050_Shapes-Text-Images_In_Chart |
idiotic thing maybe but String.fromCharCode(253) wouldnt works 253 is power of 2 and its part of extended ascii table |
@markosko - Nice to know and really interesting ! Thanks a lot. I will update the sample function_x2.html :-) @Others : Example : \u207D\u207F\u207A\u2075\u207E <=> (n+5) in "superscript". Other link with a complete list of all unicode chars... |
Thanks a lot!, |
First of all, congratulations to this wonderful work!
I want to show a number raised to a power in the yLabelAxis.
For example I want to show 10^3 with the '3' positioned as the power. I see that sup is not supported from canvas.
10<sup>3</sup>
Is it possible to do this?
The text was updated successfully, but these errors were encountered: