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