ChartClickSeries Problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

ChartClickSeries Problem

Post by Hank » Fri Apr 19, 2013 4:27 pm

I have several programs that, as I recall, worked fine with the previous version, but when I compile them with v2011/12, clicking on bar series seems to be scaled down from the actual display.

Attached is an example:

Code: Select all

procedure TSSGraphForm.FormActivate(Sender: TObject);
var x, y                                                     : integer;
    Series                                                   : TBarSeries;
begin
  WindowState := wsMaximized;
  Chart.Visible := true;
  for x := 1 to 5 do
    begin
      Series := Chart.AddSeries(TBarSeries) as TBarSeries;
      Series.Title := IntToStr(x);
      Series.MultiBar := mbnone;
      Series.Marks.Visible := false;
      Series.Transparency := 20;
      for y := 1 to 6 do Series.Add((6-x)*y,IntToStr(y));
    end;
end;

procedure TSSGraphForm.ChartClickSeries(Sender: TCustomChart; Series: TChartSeries;
  ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  MessageDlg (Series.Title, mtInformation, [mbOk], 0);
end;
I'm also attaching the complied EXE.

I'm running Windows 7 64 bit Ultimate and Delphi XE3

The bars seem to display fine, but if you click on the higher part of the front side of any bar, the ChartClickSeries doesn't fire normally. As you click down the bar lower and lower, eventually you get an event, but it returns the wrong series.

It's almost like the vertical scale is off between the mouse position and the display

Any assistance in what I'm doing wrong would be appreciated

Hank

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

Re: ChartClickSeries Problem

Post by Yeray » Mon Apr 22, 2013 11:31 am

Hi Hank,

You are right. It seems the Clicked function was broken with v2011.04 when having the default orthogonal 3D view and MultiBar=mbNone.
I've added it to the defect list to be revised for future releases (TV52016555).
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

Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

Re: ChartClickSeries Problem

Post by Hank » Mon Apr 22, 2013 1:33 pm

Thanks very much, Yeray

Can you suggest a work-around?

Maybe I could use a different series type like COLUMNS to get the same effect

mbBarNone was just the first one I stumbled upon that gave me that unstacked 3D look

Hank

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

Re: ChartClickSeries Problem

Post by Yeray » Tue Apr 23, 2013 1:27 pm

Hi Hank,

Of course you can implement your own version of the clicked function and call it at the Chart OnClick event. However, if you do it you'll see this function has to handle a quite significant number of possibilities (Bar styles, MultiBar styles, 3D/2D, etc) making it quite complicate.
I'm afraid I can't think on any other workaround at the moment.
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

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

Re: ChartClickSeries Problem

Post by Yeray » Wed Apr 24, 2013 12:19 pm

Hi Hank,

We've revised this and found the fix for it. It will be included with the next maintenance release.
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

Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

Re: ChartClickSeries Problem

Post by Hank » Wed Apr 24, 2013 9:49 pm

Great, and thanks very much

Do you have any idea when that will be and how I check for it?

Hank

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

Re: ChartClickSeries Problem

Post by Yeray » Thu Apr 25, 2013 7:54 am

Hi Hank,

We are focused in the support for the new XE4 at this moment. The Standard version is shipped with it, as always, and we are testing the Pro version with it.
What I'm not sure right now is if we'll be able to publish a full maintenance release when these tests will have finished or if we'll have to publish a beta version only for XE4. This will depend on these changes to support XE4, if they break the support for the other IDEs or not.
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

Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

Re: ChartClickSeries Problem

Post by Hank » Thu Apr 25, 2013 1:10 pm

At this point I don't mind buying any new versions of Delphi or TeeChart

Is there currently ANY version of TeeChart available where this problem doesn't exist?

If not, when/where will the first version of TeeChart for any version of Delphi be available where this problem doesn't exist?

If it's available now I'll buy whatever I need to.

If the time frame is a few weeks I might be able to wait

If the time frame is longer than a few weeks I need to give up and start over with something else

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

Re: ChartClickSeries Problem

Post by Yeray » Thu Apr 25, 2013 2:19 pm

Hi Hank,
Hank wrote:Is there currently ANY version of TeeChart available where this problem doesn't exist?
TV52016555 seem to appear in TeeChart v2011.04. So this as far as we know this should work with TeeChart v2011.03 or lower.
Hank wrote:If not, when/where will the first version of TeeChart for any version of Delphi be available where this problem doesn't exist?

If it's available now I'll buy whatever I need to.

If the time frame is a few weeks I might be able to wait

If the time frame is longer than a few weeks I need to give up and start over with something else
The next version we publish will include the fix.
We'll probably publish a pre-release version just for XE4 as soon as possible and a full maintenance release supporting all the usual IDEs a bit later.
However, as said above, I'm not sure when it will be. The pre-release for XE4 hopefully in a few days.
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

Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

Re: ChartClickSeries Problem

Post by Hank » Thu Apr 25, 2013 4:52 pm

Great

I've purchased XE4, how will I know when the XE4 TeeChart version is available?

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

Re: ChartClickSeries Problem

Post by Yeray » Fri Apr 26, 2013 7:19 am

Hi Hank,
Hank wrote:I've purchased XE4, how will I know when the XE4 TeeChart version is available?
I recommend you to be aware at the following channels for new release announcements and what's implemented on them:
- Support forum.
- RSS news feed.
- Twitter.
- Facebook.

We also have a list of customers interested to who we'll send a mail when available.
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

Hank
Newbie
Newbie
Posts: 6
Joined: Tue Nov 20, 2012 12:00 am

Re: ChartClickSeries Problem

Post by Hank » Fri Apr 26, 2013 2:05 pm

How do I get on the list that will get an email?

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

Re: ChartClickSeries Problem

Post by Yeray » Mon Apr 29, 2013 7:42 am

Hi Hank,
Hank wrote:How do I get on the list that will get an email?
You already are :)
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

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

Re: ChartClickSeries Problem

Post by Yeray » Tue Apr 30, 2013 3:07 pm

Hi,

I've sent you a mail but anyway,
This is just to let you know we've just published a TeeChart VCL/FMX BETA installer supporting RAD XE4.
http://www.teechart.net/support/viewtop ... =3&t=14016
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

Post Reply