![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Left Axis Labels Behind checkbox | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | Shinobu Nagai <nagai> |
| Component: | Axis | Assignee: | 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 |
||
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 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 If I set the code, not only left labels but also bottom axis labels are set behind. Is it correct? 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. 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. 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. Created attachment 295 [details]
Test project
Created attachment 297 [details]
Left axis
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? |
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.