Bottom Axis highlighting wrong hover over values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ando
Newbie
Newbie
Posts: 2
Joined: Thu Mar 02, 2017 12:00 am

Bottom Axis highlighting wrong hover over values

Post by Ando » Fri May 19, 2017 3:44 pm

We've noticed that on all of our charts, when you hover the mouse over the bottom axis the incorrect value is highlighted. It always highlights the value to the left of the one you are hovering over.
Screenshot.jpg
Screenshot of the cursor hovering over one point and the point to the left being highlighted
Screenshot.jpg (166.75 KiB) Viewed 9115 times
As you can see from photo above the mouse is hovering over 08/04/2015 but 18/03/2015 is highlighted. There are hidden axis labels in here as they consecutive weeks in the data set but the wrong label is highlighted irrespective of how many labels are highlighted.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Bottom Axis highlighting wrong hover over values

Post by Sandra » Mon May 22, 2017 10:51 am

Hello Ando,

Using the code below and the latest Teechart Pro VCL/FMX v2017.21 the problem you're experiencing isn't occurs for us:

Code: Select all

Uses Series,TeeConst;
var Series1:TLineSeries;
procedure TForm3.FormCreate(Sender: TObject);
var t:Integer;
begin
        Series1 := TLineSeries.Create(Self);
        Chart1.AddSeries(Series1);
        Chart1.Title.Text.Text :=  TeeMsg_Version ;
Series1.XValues.DateTime := true;
       for t := 1 To 25 do
        Series1.AddXY(EncodeDate(2016, 4, t), Random(t));

       Chart1.Axes.Bottom.LabelsAngle := 90;

end;
Are you using latest Teechart Pro VCL/FMX version?

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Ando
Newbie
Newbie
Posts: 2
Joined: Thu Mar 02, 2017 12:00 am

Re: Bottom Axis highlighting wrong hover over values

Post by Ando » Wed May 24, 2017 3:33 pm

20170524_162509.jpg
This is what happens on my machine with the attached code
20170524_162509.jpg (85.29 KiB) Viewed 9117 times
I copied your code and used that and now I get it the other way where the period to the right of the label I hover over is selected. I'm using the latest version and I'm using Delphi 10.1 Berlin Enterprise
Attachments
ChartAxisLabelIssue.zip
Use this code to replicate
(5.42 KiB) Downloaded 696 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Bottom Axis highlighting wrong hover over values

Post by Sandra » Thu May 25, 2017 3:43 pm

Hello Ando,

I would like inform you the problem you're experiencing is already fixed for next maintenance release. Here's the bug number http://bugs.teechart.net/show_bug.cgi?id=1830
Note if you works with TeeChart Pro VCL/FMX v2017.21 source code version, we can provide you the fix.

Thanks in advance
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply