Page 1 of 1

Resetting from superscript text

Posted: Tue Aug 15, 2017 5:38 am
by 16580594
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:

Code: Select all

Chart.Canvas.TextOut(125, 140, '<b>R<sup>2</sup> = 0.95</b>', TRUE);
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

Re: Resetting from superscript text

Posted: Fri Aug 18, 2017 10:30 am
by 10050769
Hello Assort,

Many thanks for the report.

I have added it in Teechart VCL bugzilla tracker to try fix it to upcoming versions. Here's the link: http://bugs.teechart.net/show_bug.cgi?id=1907

Feel free to add your mail to the Cc list to be automatically notified when an update arrives.

Thanks in advance