Code: Select all
begin
lPt.X := Chart1.BottomAxis.CalcXPosValue(spnXPos.EditingValue);
lPt.Y := Chart1.LeftAxis.CalcYPosValue(Chart1.LeftAxis.Maximum);
lPt := ClientToSCreen(lPt);
SetCursorPos(lPt.X, lPt.Y);
end;
How can I find the maximum Y value of a stack of bars for a given index?
Ed Dressel