Logarithmic Axes with TQRChart
Posted: Tue Nov 11, 2008 9:17 am
Hello,
i use TeeChart v8.02.10861 with C++Builder 6 and QuickReport 3.0.9. I have a problem with TQRChart: I can't print/preview a logarithmic axis in QRChart when i assign a normal Chart to TQRDBChart.
I have test with the following example:
On the Form are a TChart (Chart1), a QuickReport (QuickRep1) and two Buttons.
The Preview shows a normal scaled axis and when I print the QuickReport there is also a normal scaled axis and no logarithmic scaled axis.
I used the same example before with TeeChart 4 Standard and it works properly. What can I do to get the logarithmic scaled axis on the preview/printing?
Thanks and regards
Moe
i use TeeChart v8.02.10861 with C++Builder 6 and QuickReport 3.0.9. I have a problem with TQRChart: I can't print/preview a logarithmic axis in QRChart when i assign a normal Chart to TQRDBChart.
I have test with the following example:
Code: Select all
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Chart1->LeftAxis->Logarithmic = true;
Chart1->LeftAxis->Automatic = false;
Chart1->LeftAxis->Maximum = 1000;
Chart1->LeftAxis->Minimum = 0;
Chart1->LeftAxis->Increment = 100;
Chart1->LeftAxis->Visible = true;
Chart1->View3D = false;
TLineSeries *Line = new TLineSeries(Chart1);
Line->ParentChart = Chart1;
Line->FillSampleValues(20);
Line->Visible = true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Buuton2Click(TObject *Sender)
{
TQRChart *QRChart;
TQRDBChart *Chart;
QRChart = new TQRChart(this);
Chart = new TQRDBChart(QRChart);
Chart->Parent = QRChart;
Chart->Name = TeeGetUniqueName(Chart->Owner,"QRChart");
TQRBand *Band = (TQRBand*)QuickRep1->BandList->Items[0];
QRChart->Parent = Band;
QRChart->Top = Chart1->Top;
QRChart->Left = Chart1->Left;
QRChart->Width = Chart1->Width;
QRChart->Height = Chart1->Height;
QRChart->Chart->FreeAllSeries();
QRChart->Chart->Assign(Chart1);
for (int t=0; t<Chart1->SeriesCount(); t++)
CloneChartSeries(Chart1->Series[t])->ParentChart = QRChart->Chart;
QuickRep1->Preview();
}
The Preview shows a normal scaled axis and when I print the QuickReport there is also a normal scaled axis and no logarithmic scaled axis.
I used the same example before with TeeChart 4 Standard and it works properly. What can I do to get the logarithmic scaled axis on the preview/printing?
Thanks and regards
Moe