Disappearing axes (polar series, with axes not behind)
Posted: Wed Aug 20, 2008 11:04 am
Hi. I've noticed some strange behaviour with axes not being displayed on polar charts. My system has: Windows XP Pro (SP2), RAD Studio (so it's Delphi 2007) and TeeChart 8.02 (full source version). Don't know if this happens in other versions too.
Here's the simplest way to replicate the problem:
* Open a new VCL forms application (Delphi for Win32)
* Drop a TChart on the form
* Set AxisBehind to false
* Add two Polar series
* Deactivate the bottom of the two series
The top series still displays, but all the axes, ticks, labels and grid lines vanish. The problem still persists at runtime - it's not just a bug in the design environment. Axes return if you set AxisBehind to true, but sometimes that's not what you want...
Do you have any idea why it's happening?
Nick
edit:
I've found a work-around. The problem only occurs when AxesBehind is false and the bottom polar series (or polar-derived series, such as wind rose) is disabled. So, to stop it happening:
* Create an extra polar series
* Set its data source to Manual, and only put in data points you know are going to be in the region of interest
* Make its Pen and Point properties invisible and untick Show In Legend (so it won't ever be seen)
* Ensure it's the bottom listed series and that it's enabled
That seems to work. Strange behaviour, though. So I'd still be interested to know why, if you have any idea.
Here's the simplest way to replicate the problem:
* Open a new VCL forms application (Delphi for Win32)
* Drop a TChart on the form
* Set AxisBehind to false
* Add two Polar series
* Deactivate the bottom of the two series
The top series still displays, but all the axes, ticks, labels and grid lines vanish. The problem still persists at runtime - it's not just a bug in the design environment. Axes return if you set AxisBehind to true, but sometimes that's not what you want...
Do you have any idea why it's happening?
Nick
edit:
I've found a work-around. The problem only occurs when AxesBehind is false and the bottom polar series (or polar-derived series, such as wind rose) is disabled. So, to stop it happening:
* Create an extra polar series
* Set its data source to Manual, and only put in data points you know are going to be in the region of interest
* Make its Pen and Point properties invisible and untick Show In Legend (so it won't ever be seen)
* Ensure it's the bottom listed series and that it's enabled
That seems to work. Strange behaviour, though. So I'd still be interested to know why, if you have any idea.