Hello,
I use DrawZone in a polar chart. However, the drawn radius of the zone doesn't match the radius on the axis scale. Please find attached an example.
- Win 7, 32 Bit
- CB2010
- TC 8.08
Thomas
DrawZone: Wrong Radius
DrawZone: Wrong Radius
- Attachments
-
- TChartTest.zip
- (7.04 KiB) Downloaded 407 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: DrawZone: Wrong Radius
Hi to2,
If I create a new application from scratch with code below it works fine for me. So I guess It must be something you set at designtime.
After testing with the properties in the *.dfm file I found that what makes a difference is CircleLabels property. Setting it to false works fine:
Anyway, I have added the defect to the bug list (TV52015474) to be fixed for future releases.
If I create a new application from scratch with code below it works fine for me. So I guess It must be something you set at designtime.
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Chart1->Axes->Left->SetMinMax(0, 10);
Series1->AddPolar(0, 0, "", clTeeColor);
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Series1BeforeDrawValues(TObject *Sender)
{
Series1->DrawZone(0, 5, 0);
}
Code: Select all
Series1->CircleLabels=False;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: DrawZone: Wrong Radius
Well, I need the labels.After testing with the properties in the *.dfm file I found that what makes a difference is CircleLabels property. Setting it to false works fine
I would appreciate a fix in a 8.x maintenance release.Anyway, I have added the defect to the bug list (TV52015474) to be fixed for future releases.
Thanks for your investigations. I'll realize zone drawing by an extra series.
Thomas
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: DrawZone: Wrong Radius
Hi Thomas,
In that case an alternative is using TChart's OnBeforeDrawAxes event and calling Draw method as shown here:Well, I need the labels.
Code: Select all
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Chart1->Axes->Left->SetMinMax(0, 10);
Series1->AddPolar(0, 0, "", clTeeColor);
Series1->CircleLabels=True;
Chart1->Draw();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Chart1BeforeDrawAxes(TObject *Sender)
{
Series1->DrawZone(0, 5, 0);
}
This is unlikely. TeeChart 2010 VCL (aka v9) was published almost one year ago and there are no plans to publish another v8 maintenance.I would appreciate a fix in a 8.x maintenance release.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |