Page 1 of 1

How to add a point to a TWindRose series...

Posted: Tue Aug 13, 2013 4:33 pm
by 10047857
Hi

I have added a TWindRose series to my chart and obviously want to add some points to it.

The help for Teechart v8 says that I should use the AddPolar method.

So I then try and add a point to my Series1 by means of Series1.AddPolar(MyAngle, MyValue, '', clRed ) as suggested in the help, but I don't see any AddPolar method in code completion even though I've included TeePolar, TeeRose in my uses clause.

I am obviously missing the trick here can you give me some code as a clue to help me out?

Bruce.

Re: How to add a point to a TWindRose series...

Posted: Wed Aug 14, 2013 11:53 am
by 10050769
Hello Bruce,

The Documentation information is incorrect. The problem is known for us and is in bug list resport with number TV52014218. We fix it to next maintenance releases of TeeChartVCL. On the other hand, if you want populate the TeeChart WindRose series correctly, you can do something as next:

Code: Select all

Series1.AngleIncrement := 30;
 Series1.Clear;
  Series1.AddXY(  30, 100, '', clTeeColor );
  Series1.AddXY(  60, 200, '', clTeeColor );
  Series1.AddXY(  90,  50, '', clTeeColor );
  Series1.AddXY( 120, 150, '', clTeeColor );
I hope will helps.

Thanks,

Re: How to add a point to a TWindRose series...

Posted: Wed Aug 14, 2013 3:00 pm
by 10047857
Hi Sandra

Thanks for that I've now got it working!

Is producing something like this possible in the latest version of TeeChart?

Bruce.

Re: How to add a point to a TWindRose series...

Posted: Wed Aug 14, 2013 3:04 pm
by narcis
Hi Metman,

Yes, this is possible with TRoseSeries, new in the latest TeeChart Pro version. You'll find an example at What's New?\Welcome!\New Series\Rose in the features demo, available at TeeChart's program group with both evaluation and registered version. Fully functional evaluation version can be downloaded here.