<%
'strXML will be used to store the entire XML document generated
dim strXML,sumdata,i
'We need to build three charts here. So, we use a loop to iterate through data
'and build XML on the fly.
i=1
strQuery ="select * from fcmap_group_master"
set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.open strQuery,oConn
if rs1.bof = false then
do while not rs1.eof
'Get the XML for the chart
strXML = getChartEmpStatXML(rs1)
response.Write ""
'Create the chart - 2 Pie 3D Chart and 1 Column 3Dwith data from strXML
if rs1("group_id")<>3 then
response.Write renderChart("../../Charts/Pie3d.swf", "", strXML, "Chart_unemp" & i , 500, 350, false, false)
else
response.Write renderChart("../../Charts/column3d.swf", "", strXML, "Chart_emp" & i , 500, 350, false, false)
end if
response.Write " | "
i=i+1
rs1.movenext
loop
end if
set rs=nothing
set rs1=nothing
oConn.close
set oConn=nothing
%>
|