TPolarSeries incorrect lines
Posted: Thu Jun 16, 2011 7:24 am
Hi TeeCharters,
I have a problem using the TPolarSeries in a polar plot. We have a graph in the GUI and we also generate a similar graph for inclusing in a crystal reports report. The only real difference are series colours and some font sizes to make the graph easier to read in printed form. The code to add data to polar series for the two charts is the same. We first sort the data in ascending degrees and then add the points to the polar series using AddPolar, so 0 degrees is added, then 15 degrees, 30 degrees and so on. This gives the result below in the GUI:
When we generate the same graph for reporting, we get this result:
I am at a loss to explain why the lines between the points are incorrectly connected. There does not appear to be any duplication in the data being added to the series (I have added logging to our code to print every time a point is added and the same data is being added to both graphs).
I am sure that this is something to do with our code and its use of the series and/or tee chart, but I am not sure what properties would be controlling this behaviour. Any suggestions would be greatly appreciated.
Best Regards,
Steve Chamberlain.
I have a problem using the TPolarSeries in a polar plot. We have a graph in the GUI and we also generate a similar graph for inclusing in a crystal reports report. The only real difference are series colours and some font sizes to make the graph easier to read in printed form. The code to add data to polar series for the two charts is the same. We first sort the data in ascending degrees and then add the points to the polar series using AddPolar, so 0 degrees is added, then 15 degrees, 30 degrees and so on. This gives the result below in the GUI:
When we generate the same graph for reporting, we get this result:
I am at a loss to explain why the lines between the points are incorrectly connected. There does not appear to be any duplication in the data being added to the series (I have added logging to our code to print every time a point is added and the same data is being added to both graphs).
I am sure that this is something to do with our code and its use of the series and/or tee chart, but I am not sure what properties would be controlling this behaviour. Any suggestions would be greatly appreciated.
Best Regards,
Steve Chamberlain.