Wrond legend display with 2015.14 update

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
ulibru
Newbie
Newbie
Posts: 15
Joined: Mon Dec 15, 2014 12:00 am

Wrond legend display with 2015.14 update

Post by ulibru » Tue Jan 27, 2015 8:23 am

Actually I get a wrong display when showing the legend at the bottom
WrongLegend.PNG
WrongLegend.PNG (3.41 KiB) Viewed 26181 times
Placing the legend at the right side gives a correct result

- Uli

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Tue Jan 27, 2015 9:27 am

Hi Uli,

This is a known problem already detected and reported in the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1030
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
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

ulibru
Newbie
Newbie
Posts: 15
Joined: Mon Dec 15, 2014 12:00 am

Re: Wrond legend display with 2015.14 update

Post by ulibru » Tue Jan 27, 2015 1:31 pm

Hi Yeray,

the public tracker says RESOLVED FIXED.
And you are telling there that the file Chart.pas is updated. So where to get it?

- Uli

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Tue Jan 27, 2015 2:04 pm

Hello,

I've just sent the modified unit to the mail account you have registered in this forum.
Don't hesitate to let us know if you still find any problem with it.
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

Bert Kreisel
Newbie
Newbie
Posts: 3
Joined: Thu Jun 05, 2014 12:00 am

Re: Wrond legend display with 2015.14 update

Post by Bert Kreisel » Tue Jan 27, 2015 3:14 pm

Hello Yeray,

could you please send me the modified unit also?

Thanks in advance.

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Tue Jan 27, 2015 3:51 pm

Hi,
Bert Kreisel wrote:could you please send me the modified unit also?
Sure! Just done!
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

ulibru
Newbie
Newbie
Posts: 15
Joined: Mon Dec 15, 2014 12:00 am

Re: Wrond legend display with 2015.14 update

Post by ulibru » Mon Feb 02, 2015 2:01 pm

Hello Yeray,

I'm very sorry but the bottom legend is still wrong.
I need to use a legend with checkboxes.

In my own program I get now the legend displayed correctly but get a wrong behaviour. So a click on some checkboxes switches on/off the wrong series. To switch on/off a desired series I need to click beside a checkbox in the legend text. This means that the mouse position is not calculated correctly.

As it is difficult to send the full source code I have tried to make an example. The example also behaves wrongly but a bit different (some checkboxes are missed but you can click also on the text). Anyway you can see a malfunction and check what's wrong.

So simply drop a TChart component on a project form and run

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: integer;
    SeriesArray: array[0..5] of TChartSeries;
begin
  Form1.Width := 800;
  Form1.Height := 400;
  Chart1.Legend.CheckBoxes := true;
  for i := 0 to High(SeriesArray) do
  begin
    SeriesArray[i] := TLineSeries.Create(Chart1);
    SeriesArray[i].FillSampleValues(100);
  end;
  Chart1.AddSeries(SeriesArray);
  for i := 0 to 5 do
    Chart1.Series[i].Title := 'this is long series title '+IntToStr(i);
end;
As I like to deploy a correct version of my program a quick fixup would be very appreciated.

- Uli

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Mon Feb 02, 2015 3:47 pm

Hi Uli,

I've tried this with both v2015.14 and with the current internal sources we have here and it seems to work fine in both:
all_visible.png
all_visible.png (94.51 KiB) Viewed 26071 times
two_hidden.png
two_hidden.png (79.35 KiB) Viewed 26074 times
Here it is the project I used:
testBottomLegendCheckboxes.zip
(1.67 KiB) Downloaded 1021 times
Am I missing anything?
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

Tracey
Newbie
Newbie
Posts: 3
Joined: Fri Jan 30, 2015 12:00 am

Re: Wrond legend display with 2015.14 update

Post by Tracey » Tue Feb 03, 2015 2:32 am

i just downloaded the TeeChart Pro v2012/14 VCL version today and also have this misaligned legend checkbox error.

can you please send me the modified unit as well?

also, is there a way to automatically update teechart without individually requesting each patch?

thank you,

Tracey

Tracey
Newbie
Newbie
Posts: 3
Joined: Fri Jan 30, 2015 12:00 am

Re: Wrond legend display with 2015.14 update

Post by Tracey » Tue Feb 03, 2015 2:39 am

correction to the above: i have TeeChart Pro 2015 for XE7. the version number was incorrect in my order confirmation. sorry for any confusion!

Tracey

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Tue Feb 03, 2015 9:58 am

Hello Tracey,
Tracey wrote:i just downloaded the TeeChart Pro v2012/14 VCL version today and also have this misaligned legend checkbox error.

can you please send me the modified unit as well?
I see you don't have the sources so I'm preparing a TeeChart Pro BETA installer for XE7.
I'll send the link to it as soon as possible.
Tracey wrote:also, is there a way to automatically update teechart without individually requesting each patch?
Yes, with the regular maintenance releases. However, if we consider a fix is important enough, we are glad to prepare beta installers.
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

ulibru
Newbie
Newbie
Posts: 15
Joined: Mon Dec 15, 2014 12:00 am

Re: Wrond legend display with 2015.14 update

Post by ulibru » Thu Feb 05, 2015 9:00 am

Hello Yeray,

I have downloaded your test project testBottomLegendCheckboxes.zip

Indeed it works with 3D display. BUT please switch 3D off and you get
testBottomLegendCheckboxes.png
testBottomLegendCheckboxes.png (55.58 KiB) Viewed 26046 times
Regards
Uli

Tracey
Newbie
Newbie
Posts: 3
Joined: Fri Jan 30, 2015 12:00 am

Re: Wrond legend display with 2015.14 update

Post by Tracey » Sun Feb 08, 2015 5:39 pm

hi yeray:

thanks for the TeeChart Pro BETA installer for XE7. it fixed the misalignment problem.

however now on plots where the legend is more than one row, the checkboxes in all but the first column are not visible, similar to what was reported by uli above. i am also using 2D plots.

thanks!

Tracey

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

Re: Wrond legend display with 2015.14 update

Post by Yeray » Mon Feb 09, 2015 1:44 pm

Hello Uli and Tracey,

You are right the change I proposed doesn't seem to fix this in some circumstances.
I've reopened the ticket so it can be reviewed:
http://bugs.teechart.net/show_bug.cgi?id=1030
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

ulibru
Newbie
Newbie
Posts: 15
Joined: Mon Dec 15, 2014 12:00 am

Re: Wrond legend display with 2015.14 update

Post by ulibru » Mon Mar 09, 2015 2:44 pm

Hello Yeray,

now a month has passed but no solution up to now.
Ticketing a bug in the database, even with importance 'high major' does not solve anything. Someone must try to fix the bug.
So may I kindly ask you what's happening ? It's "just" 16 bugs reported for VCL TeeChart since then still open, only 2 bugs solved. So is no one dealing with them ?
I would be quite bad if I need to wait for the release of a next version.

Uli

Post Reply