Page 1 of 1

General Mark Tip

Posted: Tue Feb 09, 2010 7:16 am
by 10551078
hello,

D2007 TeechartPro VCL 8.04

I try to do display in general tool tip (or hint) all values at time with line chart ?
it's very easy for the user must clicker once with the mouse cursor and displays all values at time T in same mark.

I find with OnGetMark, but whithout result.

i note the values are not plot at same time!
ex:
trend1 10:00:02 15.5
trend1 10:05:00 14.5
trend1 10:30:00 11.6
trend1 10:31:00 25.5
trend1 11:00:00 20.5
etc...
trend2 10:10:00 120
trend2 10:20:00 125
trend2 10:30:00 121
trend3 10:40:00 126
etc..

Re: General Mark Tip

Posted: Tue Feb 09, 2010 10:08 am
by narcis
Hello mivchart,

I'm not sure about which is the exact problem. If you want to display all series marks at once you could just toggle them like this:

Code: Select all

  Series1.Marks.Visible := True;
So that you could use chart's mouse events like this:

Code: Select all

procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
  Y: Integer);
begin
  Series1.Marks.Visible := Series1.Clicked(X, Y) <> -1;
end;
If this doesn't help please give us more details about the exact problem.

Re: General Mark Tip

Posted: Tue Feb 09, 2010 10:23 am
by 10551078
no,
In a chart you have multiple curved line (or Gantt)
Click with the vertical cursor and hop display all values in a single hint for same TOP (X is DateTime axe).

Re: General Mark Tip

Posted: Tue Feb 09, 2010 10:29 am
by narcis
Hi mivchart,

Ok, in that case I recommend you to do something as in the interpolating example I posted here.

Re: General Mark Tip

Posted: Mon Feb 15, 2010 4:30 pm
by 10551078
Sorry I was absent

Ok, I think it is good solution for me, but it's complexe.
why do not you propose an integrated tool in chart ?

Re: General Mark Tip

Posted: Mon Feb 15, 2010 5:59 pm
by narcis
Hi mivchart,

Ok, I'll add your request to the wish-list to be considered for inclusion in future versions.