Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 907 - AddNull(); or AddNullXY() series method for TPolarSeries does not work properly
Summary: AddNull(); or AddNullXY() series method for TPolarSeries does not work properly
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
: 908 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-03 10:24 EDT by dmo
Modified: 2014-09-12 12:30 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
code snippet (93.99 KB, application/pdf)
2014-09-03 10:24 EDT, dmo
Details
Polar AddNullXY example (82.92 KB, image/jpeg)
2014-09-05 07:02 EDT, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmo 2014-09-03 10:24:19 EDT
Created attachment 281 [details]
code snippet

The delivered help file states the AddNull()/AddNullXY() methods should work like a 'pen up' function (my words).

It works fine for the TLineSeries.
It does NOT work for the TPolarSeries.

I apologize for not including a small demonstration project, but I work in a secure environment on a closed network (no internet access). It is very difficult to transfer any digital data from this network.

Attached is a simple demonstration code snippet I believe you will find sufficient to demonstrate the problem.
Comment 1 narcís calvet 2014-09-05 06:11:34 EDT
*** Bug 908 has been marked as a duplicate of this bug. ***
Comment 2 narcís calvet 2014-09-05 07:02:56 EDT
Created attachment 287 [details]
Polar AddNullXY example

Code below adds a point at 0, 40 where the null value should be at 40,40. 

procedure TForm1.FormCreate(Sender: TObject);
begin
 Series1.AddPolar(20, 20);
 Series1.AddPolar(30, 30);
 Series1.AddNullXY(40, 40);
 Series1.AddPolar(50, 50);
 Series1.AddPolar(60, 60);
end;
Comment 3 david berneda 2014-09-12 11:42:10 EDT
Two notes:

1) For Polar, AddNull and AddNullXY aren't working correctly because the AngleValue[] array is not filled, and its always 0 (angle zero).

Polar has X,Y and Angle values, and currently AddNull or AddNullXY only set X and Y, but not the Angle.

This is now fixed.

2) Currently, the default value for TreatNulls property in Polar series is:  "tnIgnore".

(ie: By default Polar does not consider null points).

This is going to be fixed too, and TreatNulls will be tnSkip by default like in Line and other series.
Comment 4 david berneda 2014-09-12 11:46:37 EDT
Note: The item 2 above (default TreatNulls will no longer be "tnIgnore") will also be changed for Smith series due to class inheritance from TCustomCircledSeries.
Comment 5 david berneda 2014-09-12 12:30:12 EDT
Fixed.