Resetting from superscript text

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Assort
Newbie
Newbie
Posts: 1
Joined: Mon Mar 27, 2017 12:00 am

Resetting from superscript text

Post by Assort » 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:

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
Attachments
graph.png
graph.png (50.85 KiB) Viewed 10166 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Resetting from superscript text

Post by Sandra » Fri Aug 18, 2017 10:30 am

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply