Fuego.Chart : DefaultXYZDataSource

A simple, mutable Data Source for XYZ charts. You add values to the data source one by one, calling the addValue() method.

Example

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
Related reference
Fuego.Chart : XYZDataSource
Fuego.Chart : DataSourceFactory
Fuego.Chart : XYZDataSourceImpl