Page 1 of 1

OnClickSeries works "randomly" in a Tag Cloud serie

Posted: Mon Jun 09, 2014 3:00 pm
by 16566472
After upgrading to 2013.09.131119, the OnClickSeries event in a Tag Cloud serie works "randomly" - I mean it gets fired seldom as long as I try clicking around the chart. While with version 8 I could get reliable result, with version 2013 it looks the code to identify the click site can no longer identify reliably when a tag in the tag cloud is clicked.
Is there any change between version that requires a different approach?

Re: OnClickSeries works "randomly" in a Tag Cloud serie

Posted: Tue Jun 10, 2014 7:47 am
by yeray
Hello,

I'm trying to reproduce the problem with the following code but it seems to work fine for me here in Delphi 7 with both TeeChart v2013.09 and the actual v2014.11.

Code: Select all

uses Chart, TeeTagCloud;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;

  Chart1.AddSeries(TTagCloudSeries).FillSampleValues;

  Chart1.OnMouseMove:=Chart1MouseMove;
end;

procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  Caption:='X: ' + IntToStr(X) + ', Y: ' + IntToStr(Y) + ', ValueIndex: ' + IntToStr(Chart1[0].Clicked(X, Y));
end;
Could you please check if it works fine for you?
If this works fine but not your project, could you please try to arrange a simple example project we can run as-is to reproduce the problem here?
If the code above reproduces the problem for you, please tell us what IDE and OS are you using.