Returning the X axis label when moving mouse
Posted: Mon Feb 23, 2009 8:51 pm
I'm having a problem returning the X axis label.
I load up the candle chart thus.
With Series1 do
begin
For X := 1 To NumRecs do
begin
AddCandle( X,
Stock_Data[X].Open,
Stock_Data[X].High,
Stock_Data[X].Low,
Stock_Data[X].CloseP);
DecodeDate(Stock_Data[X].Date, tmpYear, tmpMonth, tmpDay );
Labels[X]:= FormatFloat('0000',tmpYear)+
FormatFloat('00',tmpMonth)+
FormatFloat('00',tmpDay);
end;
end;
It is a scrolling chart with over 3000 records.
While moving the mouse over the Series, I need to return the label for the mouse X position.
Thanks in advance.
I load up the candle chart thus.
With Series1 do
begin
For X := 1 To NumRecs do
begin
AddCandle( X,
Stock_Data[X].Open,
Stock_Data[X].High,
Stock_Data[X].Low,
Stock_Data[X].CloseP);
DecodeDate(Stock_Data[X].Date, tmpYear, tmpMonth, tmpDay );
Labels[X]:= FormatFloat('0000',tmpYear)+
FormatFloat('00',tmpMonth)+
FormatFloat('00',tmpDay);
end;
end;
It is a scrolling chart with over 3000 records.
While moving the mouse over the Series, I need to return the label for the mouse X position.
Thanks in advance.