X values of points are incorrectly drawn

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
X-ray
Newbie
Newbie
Posts: 8
Joined: Mon Jan 25, 2016 12:00 am

X values of points are incorrectly drawn

Post by X-ray » Thu Jul 14, 2016 9:45 am

Hello,

there seems to be a problem with the (X) position of points in the graphics.
Or I am overlooking something. The series values that are plotted are all on the same X value:
ValueTable.PNG
The table showing all the same X positions
ValueTable.PNG (8.46 KiB) Viewed 5304 times
But in the graphics the points are at different X values:
ValueGraphics.PNG
The graphics showing deviating X positions
ValueGraphics.PNG (24.7 KiB) Viewed 5306 times
To reproduce this please load the chart from the attached tee file.

best regards,

X-Ray
Attachments
TestSeriesXValueBug.zip
ZIP file containing the .tee file to reproduce the issue
(1.16 KiB) Downloaded 521 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: X values of points are incorrectly drawn

Post by Yeray » Fri Jul 15, 2016 8:02 am

Hello,

After loading your tee file I see the first 2 series are assigned to the top axis while the third series is assigned to the bottom axis. By default, each axis automatically scales to fit the points in the series assigned to it; but they also add some offset internally to avoid overlapping when possible.
In your case, if you are not going to show the top axis, you can assign all the series to the bottom axis:

Code: Select all

  Chart1[0].HorizAxis:=aBottomAxis;
  Chart1[1].HorizAxis:=aBottomAxis;

  Chart1.Axes.Bottom.LabelStyle:=talValue;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

X-ray
Newbie
Newbie
Posts: 8
Joined: Mon Jan 25, 2016 12:00 am

Re: X values of points are incorrectly drawn

Post by X-ray » Fri Jul 15, 2016 11:28 am

Hello Yeray,

Thank you very much for clearing the confusion !
I assigned the other series to the invisible top axis to not show the markers on the bottom axes, but rather the values.
The call:

Chart1.Axes.Bottom.LabelStyle:=talValue;

is of course the right measure to achieve this.

best regards,

X-ray

Post Reply