TreeMap Series - OnClick - ValueIndex always Zero...

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TimeAcct
Newbie
Newbie
Posts: 43
Joined: Wed Sep 03, 2008 12:00 am

TreeMap Series - OnClick - ValueIndex always Zero...

Post by TimeAcct » Mon May 31, 2010 5:07 am

Hello,

I have been playing with the TreeMap series. Very nice and fairly easy to use - now that I have found the sample projects.

However, once piece of code - the OnClick Event does not seem to be working as I would expect.
When I run the OnClick (by clicking on various parts of the Chart) I always get a value of Zero for the ValueIndex. I thought this was supposed to be the value pointing to the item in the Series that was clicked?

procedure TForm_OutputTreeMapView.Chart_TreeMapClickSeries(Sender: TCustomChart;
Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);

===> If TDirInfo(CurrNode.Data).DirSize = TTreeMapSeries(Series).Item[ValueIndex].Value Then Begin

This line of code is always wrong - because ValueIndex is always zero...

Is this a bug in the new component? Or do I have to determine which item on the TreeMap was clicked in a different way?
Any thoughts would be appreciated.


Bradley MacDonald
TimeAcct Information Systems
brad_AT_timeacct_DOT_com

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

Re: TreeMap Series - OnClick - ValueIndex always Zero...

Post by Yeray » Mon May 31, 2010 9:45 am

Hi Bradley,

Yes, you are right. Please note that this is a quite new series and it would probably need some improvements.
I've added it to the wish list to be implemented in future releases (TV52014920).
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

TimeAcct
Newbie
Newbie
Posts: 43
Joined: Wed Sep 03, 2008 12:00 am

Re: TreeMap Series - OnClick - ValueIndex always Zero...

Post by TimeAcct » Mon May 31, 2010 1:00 pm

Hello Yeray,

Can you provide a rough idea when this might be patched? It is a fairly important feature to us.

Bradley MacDonald

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

Re: TreeMap Series - OnClick - ValueIndex always Zero...

Post by Yeray » Tue Jun 01, 2010 10:18 am

Hi Bradley,

We've taken a deeper look at it and we've already implemented it so it will be available in the next maintenance release.
As you are a source code customer, I'll send you the unit with the changes to the mail account you have registered in this forums.
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