Incorrect axis area size (height) when title using html (Build 2017.22.170619)
Here Is a simple example
Code: Select all
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Chart1->View3D = false;
TLineSeries* pTLineSeries1 = new TLineSeries(Chart1);
Chart1->AddSeries(pTLineSeries1);
pTLineSeries1->FillSampleValues(50);
pTLineSeries1->XValues->DateTime=true;
Chart1->BottomAxis->Title->Text = "Line 1<BR>Line 2";
Chart1->BottomAxis->Title->TextFormat = ttfHtml;
Chart1->BottomAxis->Title->Transparent = false;
Chart1->BottomAxis->Title->Angle = 0;
Chart1->BottomAxis->DateTimeFormat = "c";
Chart1->BottomAxis->LabelsMultiLine = true;
Chart1->BottomAxis->ExactDateTime = true;
Chart1->BottomAxis->Increment = DateTimeStep[dtFifteenMinutes];
Chart1->BottomAxis->ResizeChart = true;
TChartAxis* pTChartAxis = Chart1->CustomAxes->Add();
pTChartAxis->Horizontal = true;
pTChartAxis->Title->Text = "Line 1<BR>Line 2";
pTChartAxis->Title->TextFormat = ttfHtml;
pTChartAxis->Title->Transparent = false;
pTChartAxis->Title->Angle = 0;
pTChartAxis->DateTimeFormat = "c";
pTChartAxis->LabelsMultiLine = true;
pTChartAxis->ExactDateTime = true;
pTChartAxis->Increment = DateTimeStep[dtFifteenMinutes];
pTChartAxis->ResizeChart = true;
TLineSeries* pTLineSeries2 = new TLineSeries(Chart1);
Chart1->AddSeries(pTLineSeries2);
pTLineSeries2->FillSampleValues(50);
pTLineSeries2->XValues->DateTime=true;
pTLineSeries2->HorizAxis = aCustomHorizAxis;
pTLineSeries2->CustomHorizAxis = pTChartAxis;
}
View after zoom
I also have question how to get regular and custom axis areas size when one have to manage axis position from code (ResizeChart = false)).
Best Regards,
Grzegorz