A simple, mutable Data Source for XYZ charts. You add values to the data source one by one, calling the addValue() method.
xyzData = DefaultXYZDataSource("Stock Status")
for each element in
SELECT stktype, status, count(*) as c
FROM STKORDER
GROUP BY stktype, status
do
addValue xyzData using value = element.c,
rowHeader = element.stktype,
columnHeader = element.status
end
return xyzData