Is there any easy way to detect if an axis is used by one (or more) series? Something like ....
Code: Select all
If Chart.CustomAxes[Nr].Used = True then .....
Code: Select all
If Chart.CustomAxes[Nr].Used = True then .....
Code: Select all
for i:=0 to Chart1.CustomAxes.Count - 1 do
begin
for j:=0 to Chart1.SeriesCount - 1 do
begin
if ((Chart1[j].CustomHorizAxis = Chart1.CustomAxes[i]) or
(Chart1[j].CustomVertAxis = Chart1.CustomAxes[i])) then
begin
//Add your code here
end;
end;
end;
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |