Hi,
Axis label height calculation does not consider multiline. When I add SrollPager and axis is multiline there is not enough place to display labels correctly.
Best Regards,
Grzegorz
Axis label height calculation does not consider multiline
Re: Axis label height calculation does not consider multiline
Hello Grzegorz,
I could reproduce it (without using scrollpager tool) so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1684
I could reproduce it (without using scrollpager tool) so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1684
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Axis label height calculation does not consider multiline
Hello Grzegorz,
I fixed it for the next maintenance release.
Since you are a source code customer, you could apply the modification in your sources (and recompile them). At the TChartAxis.GetAxisSeriesLabel function in TeEngine.pas you'll find:
Add "talValue" so it ends looking like this:
I fixed it for the next maintenance release.
Since you are a source code customer, you could apply the modification in your sources (and recompile them). At the TChartAxis.GetAxisSeriesLabel function in TeEngine.pas you'll find:
Code: Select all
talPointValue : if MandatoryAxis=Self then // DB
ALabel:=LabelValue(MandatoryValueList.Value[AIndex])
else
ALabel:=LabelValue(NotMandatoryValueList.Value[AIndex])
Code: Select all
talPointValue,
talValue : if MandatoryAxis=Self then // DB
ALabel:=LabelValue(MandatoryValueList.Value[AIndex])
else
ALabel:=LabelValue(NotMandatoryValueList.Value[AIndex])
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Axis label height calculation does not consider multiline
Hello,
I've apply Your fix but there is some more problems especially when one enable axis title.
Here is an example
When chart is unzoomed it looks like this
There is a lot of free space below axis titile
When one try to zoom and labels are really multiline labels are cover axis title. Best Regards,
Grzegorz
I've apply Your fix but there is some more problems especially when one enable axis title.
Here is an example
Code: Select all
TChartSeries* pTChartSeries = Chart1->AddSeries(new TLineSeries(Chart1));
if(pTChartSeries)
{
dynamic_cast<TLineSeries*>(pTChartSeries)->Stairs = true;
pTChartSeries->Title = "Series" + IntToStr(Chart1->SeriesCount() - 1);
pTChartSeries->XValues->DateTime=true;
pTChartSeries->FillSampleValues(100);
}
Chart1->BottomAxis->ExactDateTime = true;
Chart1->BottomAxis->Increment = DateTimeStep[dtFifteenMinutes];
Chart1->BottomAxis->DateTimeFormat = "c";
Chart1->BottomAxis->LabelsMultiLine = true;
Chart1->BottomAxis->Title->Caption = "Axis Title";
Chart1->BottomAxis->Title->Visible = true;
Chart1->BottomAxis->Title->Transparent = false;
Chart1->BottomAxis->Title->Color = clRed;
When one try to zoom and labels are really multiline labels are cover axis title. Best Regards,
Grzegorz
Re: Axis label height calculation does not consider multiline
Hello Grzegorz,
I could reproduce the problem you are reporting so I've re-factored the fix for #1684.
Since you own the Source Code I'll send a mail with the modified TeEngine.pas unit to the mail you have registered in this forum.
I could reproduce the problem you are reporting so I've re-factored the fix for #1684.
Since you own the Source Code I'll send a mail with the modified TeEngine.pas unit to the mail you have registered in this forum.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Axis label height calculation does not consider multiline
Hello,
The fix that You send me works, but only for standard axis. On custom axis title overlap labels when multiline is enabled.
Best Regards,
Grzegorz
The fix that You send me works, but only for standard axis. On custom axis title overlap labels when multiline is enabled.
Best Regards,
Grzegorz
Re: Axis label height calculation does not consider multiline
Hello,
This is a different issue, so I've created a new ticket:
http://bugs.teechart.net/show_bug.cgi?id=1692
This is a different issue, so I've created a new ticket:
http://bugs.teechart.net/show_bug.cgi?id=1692
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |