Resetting from superscript text
Posted: Tue Aug 15, 2017 5:38 am
Hi,
I'm attempting to add text to a chart to show the coefficient of determination, i.e., R^2 = 0.95. Obviously, I need a superscript for this. I'm adding this using the following code:
It appears that the calculation of the position of the characters after the </sup> is incorrect, but it's always possible that I'm doing something wrong.
I'm using the newest source code version of TeeChart Pro VCL FMX 2017.22 with Delphi 10 Seattle and Firemonkey.
Can you please advise how I can fix this problem?
Best regards,
James
I'm attempting to add text to a chart to show the coefficient of determination, i.e., R^2 = 0.95. Obviously, I need a superscript for this. I'm adding this using the following code:
Code: Select all
Chart.Canvas.TextOut(125, 140, '<b>R<sup>2</sup> = 0.95</b>', TRUE);
I'm using the newest source code version of TeeChart Pro VCL FMX 2017.22 with Delphi 10 Seattle and Firemonkey.
Can you please advise how I can fix this problem?
Best regards,
James