Page 1 of 1

Incorrect axis title position when using html

Posted: Tue Jan 17, 2017 12:31 pm
by 16578912
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 18487 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 18487 times
Best Regards,
Grzegorz

Re: Incorrect axis title position when using html

Posted: Wed Jan 18, 2017 12:03 pm
by 10050769
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

Re: Incorrect axis title position when using html

Posted: Wed Jan 18, 2017 12:37 pm
by 16578912
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

Re: Incorrect axis title position when using html

Posted: Wed Jan 18, 2017 4:52 pm
by 10050769
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

Re: Incorrect axis title position when using html

Posted: Wed Jan 18, 2017 8:58 pm
by 16578912
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

Re: Incorrect axis title position when using html

Posted: Fri Jan 20, 2017 4:22 pm
by 10050769
Hello Grzegorz,

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

Thanks in advance

Re: Incorrect axis title position when using html

Posted: Thu Feb 23, 2017 1:36 pm
by yeray
Hi Grzegorz,

Let me update the status of the mentioned tickets:

#1651: Fixed
#1694: Fixed
#1638: Fixed
#1343: Pending
#1692: Fixed

Re: Incorrect axis title position when using html

Posted: Fri Feb 24, 2017 6:02 am
by 16578912
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

Re: Incorrect axis title position when using html

Posted: Fri Feb 24, 2017 11:43 am
by yeray
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

Re: Incorrect axis title position when using html

Posted: Wed Mar 01, 2017 8:38 am
by yeray
Hi Grzegorz,
Yeray wrote: #1343: Pending
Closed as "Won't Fix". We recommend moving to GDIPlus.