Incorrect axis title position when using html

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Incorrect axis title position when using html

Post by Technicon » Tue Jan 17, 2017 12:31 pm

Hello

Incorrect axis title position when angle = 0 and TextFormat = ttfHtml (multi line)

Here Is a simple example

Code: Select all

void __fastcall TForm1::FormCreate(TObject *Sender)
{
	Chart1->View3D = false;
	TLineSeries* pTLineSeries = new TLineSeries(Chart1);
	Chart1->AddSeries(pTLineSeries);
	pTLineSeries->FillSampleValues(50);
	Chart1->LeftAxis->Title->Text = "Line 1<BR>Line 2";
	Chart1->LeftAxis->Title->TextFormat = ttfHtml;
	Chart1->LeftAxis->Title->Transparent = false;
	Chart1->LeftAxis->Title->Angle = 0;
}
angle0.png
angle0.png (20.2 KiB) Viewed 18488 times
When Angle = 90 the position is also incorrect or left margin is to small (it depends on current chart size)
angle90.png
angle90.png (19.31 KiB) Viewed 18488 times
Best Regards,
Grzegorz

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

Re: Incorrect axis title position when using html

Post by Sandra » Wed Jan 18, 2017 12:03 pm

Hello Technicon,

You can fix the Title Axis position when the Angle is 0, changing the left margin size in same way as code below:

Code: Select all

void __fastcall TForm1::FormCreate(TObject *Sender)
{
	Chart1->View3D = false;
	TLineSeries* pTLineSeries = new TLineSeries(Chart1);
	Chart1->AddSeries(pTLineSeries);
	pTLineSeries->FillSampleValues(50);
	Chart1->LeftAxis->Title->Text = "Line 1<BR>Line 2";
	Chart1->LeftAxis->Title->TextFormat = ttfHtml;
	Chart1->LeftAxis->Title->Transparent = false;
	Chart1->LeftAxis->Title->Angle = 90;
	TeeGDIPlus1->TeePanel = Chart1;
	TeeGDIPlus1->Active = true;
	CheckBox1->Checked = true;
	Chart1->Draw();
	//ChangeMargins size
	Chart1->MarginUnits = muPixels;
	TRect* rect1T = new TRect();
	rect1T = &Chart1->LeftAxis->Title->ShapeBounds;
	Chart1->MarginLeft = Chart1->MarginLeft+ rect1T->Width();
}
Hoping this helps
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

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Incorrect axis title position when using html

Post by Technicon » Wed Jan 18, 2017 12:37 pm

Hello,

Thank you for your help but I was rather expect some TeeChart source code hotfix and BTS report.

There is to many glitches in TeeChart that I have to bypass and because of that I'm not able to finish my project.
I'm still waiting for some other fixes to. In BTS I see confirmed errors that are above 1 year old and no one care about it.
I think that it is about time to put some more resources to fix all known errors.

Best Regards,
Grzegorz

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

Re: Incorrect axis title position when using html

Post by Sandra » Wed Jan 18, 2017 4:52 pm

Hello Grzegorz,

I'm sorry you found many problems with TeeChart Pro VCL/FMX.
Could you please, confirm us which Bugs you expected are fixed because we can review these immediately?

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

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Incorrect axis title position when using html

Post by Technicon » Wed Jan 18, 2017 8:58 pm

Hello Sandra,

Thank you for your support and understanding.

Besides the bug mentioned in the subject of this thread I'm desperately waiting form fixes to these issues:
http://bugs.teechart.net/show_bug.cgi?id=1651
http://bugs.teechart.net/show_bug.cgi?id=1694
http://bugs.teechart.net/show_bug.cgi?id=1638
http://bugs.teechart.net/show_bug.cgi?id=1343
http://bugs.teechart.net/show_bug.cgi?id=1692

Thank you in advance.
Grzegorz

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

Re: Incorrect axis title position when using html

Post by Sandra » Fri Jan 20, 2017 4:22 pm

Hello Grzegorz,

Many thanks your detailed information. We review that and try to fix the bugs for next maintenance release.

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incorrect axis title position when using html

Post by Yeray » Thu Feb 23, 2017 1:36 pm

Hi Grzegorz,

Let me update the status of the mentioned tickets:

#1651: Fixed
#1694: Fixed
#1638: Fixed
#1343: Pending
#1692: Fixed
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Technicon
Newbie
Newbie
Posts: 43
Joined: Thu Aug 11, 2016 12:00 am
Contact:

Re: Incorrect axis title position when using html

Post by Technicon » Fri Feb 24, 2017 6:02 am

Hi,

It's good to know that resolving issues is moving forward.
Thank you for information.
Are the issue about the thread subject are also resolved?

Best Regards,
Grzegorz

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incorrect axis title position when using html

Post by Yeray » Fri Feb 24, 2017 11:43 am

Hello Grzegorz,
Technicon wrote:Are the issue about the thread subject are also resolved?
I'm afraid not. Just created the ticket for it:
http://bugs.teechart.net/show_bug.cgi?id=1803
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Incorrect axis title position when using html

Post by Yeray » Wed Mar 01, 2017 8:38 am

Hi Grzegorz,
Yeray wrote: #1343: Pending
Closed as "Won't Fix". We recommend moving to GDIPlus.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply