<html>
<head>
<xml:namespace prefix="v"/>
<style>
v\:* {behavior=url(#default#VML)}
</style>
<%@ page contentType="text/html;" %>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/System.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DataSet.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/Control.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBControl.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBNavigator.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBPageNavigator.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBGrid.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/Canvas.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBChartBar.js"></SCRIPT>
<SCRIPT language=JavaScript type="text/javascript" SRC="jcl/DBChartPie.js"></SCRIPT>

</head>
<BODY onload='afterload();'>
</BODY>
</html>


<SCRIPT language=JavaScript type="text/javascript">

function afterload(){
  init();
}

function init(){
    window.Span1=new Span();
    window.DataSet1=new DataSet();
    var Field1 = new Field("PRODUCT_ID","VARCHAR");
    var Field2 = new Field("PRODUCT_NAME","VARCHAR");
    var Field3 = new Field("PRODUCT_PRICE","REAL");
    var Field4 = new Field("PRODUCT_AREA","VARCHAR");
    window.DBChartBar1=new DBChartBar();
    window.DBChartPie1=new DBChartPie();
    Span1.Name='Span1';
    Span1.innerText='Chart Example';
    Span1.style.height='24';
    Span1.style.width='186';
    Span1.style.position='absolute';
    Span1.style.left='217';
    Span1.style.top='9';
    Span1.style.fontSize='18';
    Span1.style.color='#003399';
    DataSet1.Name='DataSet1';
    DataSet1.Fields.Add(Field1);
    DataSet1.Fields.Add(Field2);
    DataSet1.Fields.Add(Field3);
    DataSet1.Fields.Add(Field4);
    DataSet1.Fields.Auto = false;
    DataSet1.MaxRows=-1;
    DataSet1.DataSource='demo.Simple';
    Field1.Name='Field1';
    Field1.Type='VARCHAR';
    Field1.FieldName='PRODUCT_ID';
    Field2.Name='Field2';
    Field2.Type='VARCHAR';
    Field2.FieldName='PRODUCT_NAME';
    Field3.Name='Field3';
    Field3.Type='REAL';
    Field3.FieldName='PRODUCT_PRICE';
    Field4.Name='Field4';
    Field4.Type='VARCHAR';
    Field4.FieldName='PRODUCT_AREA';
    DBChartBar1.Name='DBChartBar1';
    DBChartBar1.style.height='272';
    DBChartBar1.style.width='492';
    DBChartBar1.style.position='absolute';
    DBChartBar1.style.left='49';
    DBChartBar1.style.top='44';
    DBChartBar1.DataSet=DataSet1;
    DBChartBar1.LabelField='PRODUCT_NAME';
    DBChartBar1.ValueField='PRODUCT_PRICE';
    DBChartPie1.Name='DBChartPie1';
    DBChartPie1.style.height='254';
    DBChartPie1.style.width='496';
    DBChartPie1.style.position='absolute';
    DBChartPie1.style.left='49';
    DBChartPie1.style.top='418';
    DBChartPie1.DataSet=DataSet1;
    DBChartPie1.LabelField='PRODUCT_NAME';
    DBChartPie1.ValueField='PRODUCT_PRICE';
    DataSet1.Open();
}
</SCRIPT>
