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 895

Summary: Left Axis Labels Behind checkbox
Product: VCL TeeChart Reporter: Shinobu Nagai <nagai>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: normal CC: david, narcis, pep
Priority: ---    
Version: 140512   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Axis Labels behind
Test project
Left axis

Description Shinobu Nagai 2014-08-25 00:07:29 EDT
Created attachment 270 [details]
Axis Labels behind

Even if I select All Features/Axes/Labels/Axis Labels behind sample and mark/unmark the Left Axis Labels Behind checkbox, I don't see any changes.
Comment 1 narcís calvet 2014-08-28 06:28:52 EDT
It's a problem with the demo. The component works fine in VB6. It can be fixed in the Axis_LabelsBehind example code using this:

Private Sub Check1_Click()
  TChart1.Axis.Behind = Check1.Value
End Sub
Comment 2 narcís calvet 2014-08-28 06:32:45 EDT
It's a problem with the demo. The component works fine in VB6. It can be fixed in the Axis_LabelsBehind example code using this:

Private Sub Check1_Click()
  TChart1.Axis.Behind = Check1.Value
End Sub
Comment 3 Shinobu Nagai 2014-08-29 01:41:16 EDT
If I set the code, not only left labels but also bottom axis labels are set behind. Is it correct?
Comment 4 narcís calvet 2014-08-29 03:43:38 EDT
Yes, I think so. Behind property is a global axes property, not for each individual axis. I don't think it should be there in the ActiveX version as it doesn't even exists for individual axis in the VCL/FMX version. We will try to fix it for future releases.
Comment 5 pep jorge 2014-09-02 06:55:32 EDT
Nagai, you're correct, this is an VCL bug which we'll try to fix for the next maintenance releases.
The equivalent code in VCL  :
Chart1.Axes.Left.LabelsBehind := False;

does not do nothing.
Comment 6 david berneda 2014-09-12 12:48:54 EDT
It's not technically a bug.

The current functionality of LabelsBehind (or Texts.Behind) is to display the axis labels behind or on top of the axis grid lines.
This is False by default.

What makes axis labels (and grids) to display on-top of series is the Axes.Behind property, which is True by default.

procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  Chart1.Axes.Left.Texts.Behind:=CheckBox1.Checked;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Axes.Left.Grid.Width:=4;
end;

procedure TForm1.CheckBox2Click(Sender: TObject);
begin
  Chart1.Axes.Behind:=CheckBox2.Checked;
end;

I'm adding a test project attachment.
Comment 7 david berneda 2014-09-12 12:49:18 EDT
Created attachment 295 [details]
Test project
Comment 8 Shinobu Nagai 2014-09-15 21:40:16 EDT
Created attachment 297 [details]
Left axis
Comment 9 Shinobu Nagai 2014-09-15 21:54:57 EDT
You mentioned:
The current functionality of LabelsBehind (or Texts.Behind) is to display the axis labels behind or on top of the axis grid lines.
This is False by default.

Then, please change the demo to easily understand it?

You mentioned:
What makes axis labels (and grids) to display on-top of series is the Axes.Behind property, which is True by default.


Please see the attached image. It shows a chart image when I ran your test project. As you see, the both checkboxes are set to False. When setting them to False, both labels and grids should be displayed on-top of the series, shouldn't they? However, they aren't displayed as expected. How can they be displayed on-top of series?