hi..i use this code:
while not sqlDebtors.eof do begin
fAmtOut := 0;
fAmt := 0;
sBranch := sqlDebtors.fieldbyname('Branch').AsString;
while (not sqlDebtors.Eof) and (sqlDebtors.FieldByName('Branch').AsString =sBranch) do begin
fAmtOut := fAmtOut + sqlDebtors.fieldbyname('Outstanding').asfloat;
fAmt := fAmt + sqlDebtors.fieldbyname('Amount').asfloat;
sqlDebtors.Next;
end;
pbar.add(fAmtOut, sBranch);
pbar.add(fAmt, sBranch);
end;
my graph draw like this
but i want to group my graph to be side bar graph so its can group by branch like this:
hope anyone can help me.thanks.