Chipmunk77
asked on
DB Chart Axis Components from ADO
Hi all,
I found an article on about.com that helped me figure out how to set the series to a field that does not appear in the code - however, they have a line of code that I do not understand and cannot figure out the equivalent in my app:
with DBChart1.SeriesList.Series [0] do begin
DataSource := ADOQuery1;
XLabelsSource := ADOQuery1Company.FieldName ;
XValues.ValueSource := ADOQuery1SumItems.FieldNam e;
YValues.ValueSource := '';
Marks.Style := smsXValue;
CheckDataSource;
My Query is ADOQuerySalesman and my field is u_name
It does not have full source, so I am not sure what ADOQuery1Company.FieldName is supposed to represent. I tried using ADOQuerySalesman.u_name, I tried using ADOQuerySalesmanu_name.Fie ldname - I'm not sure what that line represents - can anyone help? Either with this specifically - or any help with DBChart and how to set it up via code
Thanks all!
I found an article on about.com that helped me figure out how to set the series to a field that does not appear in the code - however, they have a line of code that I do not understand and cannot figure out the equivalent in my app:
with DBChart1.SeriesList.Series
DataSource := ADOQuery1;
XLabelsSource := ADOQuery1Company.FieldName
XValues.ValueSource := ADOQuery1SumItems.FieldNam
YValues.ValueSource := '';
Marks.Style := smsXValue;
CheckDataSource;
My Query is ADOQuerySalesman and my field is u_name
It does not have full source, so I am not sure what ADOQuery1Company.FieldName
Thanks all!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks! I understand now, that will be very helpful! :-)
with DBChart1.SeriesList.Series
DataSource := ADOQuery1;
XLabelsSource :=ADOQuery1.Fields[0].Disp
XValues.ValueSource := ADOQuery1.Fields[1].Displa
YValues.ValueSource := '';
Marks.Style := smsXValue;
CheckDataSource;
It should work