<HTML>
<HEAD>
<META HTTP-EQUIV='Pragma' CONTENT='no-cache'>
<META HTTP-EQUIV='Expires' CONTENT='0'>
<META http-equiv='Cache-Control' content='no-cache'>
<TITLE>EggHeadCafe.com Bar Graph Control By Robbe D. Morris</TITLE>
<script language=JavaScript src=BarGraphDraw.js></script>
<script language=JavaScript src=BarGraphTest.js></script>
<script language=JavaScript>
// Element array constants used to identify positions in the array
var idxBarGraphDisplayKey=0;
var idxBarGraphDisplayName=1;
var idxBarGraphDisplay=2;
var idxBarGraphDisplayWeight=3;
var idxBarGraphMathType=4
var BarGraphArrays = new Array();
BarGraphArrays[0] = new Array ('1000','Element 0',false,'15.7',BarGraphMathTypePercent);
BarGraphArrays[1] = new Array ('1001','Element 1',false,'20.0',BarGraphMathTypePercent);
BarGraphArrays[2] = new Array ('1002','Element 2',false,'19.4',BarGraphMathTypePercent);
BarGraphArrays[3] = new Array ('1003','Element 3',false,'5.2',BarGraphMathTypePercent);
BarGraphArrays[4] = new Array ('1004','Element 4',false,'20.5',BarGraphMathTypePercent);
BarGraphArrays[5] = new Array ('1005','Element 5',false,'8.7',BarGraphMathTypePercent);
BarGraphArrays[6] = new Array ('1006','Element 6',false,'10.2',BarGraphMathTypePercent);
BarGraphArrays[7] = new Array ('1007','Element 7',false,'4.0',BarGraphMathTypeScore);
BarGraphArrays[8] = new Array ('1008','Element 8',false,'7.0',BarGraphMathTypeScore);
BarGraphArrays[9] = new Array ('1009','Element 9',false,'5.0',BarGraphMathTypeScore);
BarGraphArrays[10] = new Array ('1010','Element 10',false,'3.4',BarGraphMathTypeScore);
BarGraphArrays[11] = new Array ('1011','Element 11',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[12] = new Array ('1012','Element 12',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[13] = new Array ('1013','Element 13',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[14] = new Array ('1014','Element 14',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[15] = new Array ('1015','Element 15',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[16] = new Array ('1016','Element 16',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[17] = new Array ('1017','Element 17',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[18] = new Array ('1018','Element 18',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[19] = new Array ('1019','Element 19',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[20] = new Array ('1020','Element 20',false,'10.0',BarGraphMathTypePercent);
BarGraphArrays[21] = new Array ('1021','Element 21',false,'2.5',BarGraphMathTypeScore);
BarGraphArrays[22] = new Array ('1022','Element 22',false,'8.5',BarGraphMathTypeScore);
BarGraphArrays[23] = new Array ('1023','Element 23',false,'7.5',BarGraphMathTypeScore);
BarGraphArrays[24] = new Array ('1024','Element 24',false,'6.5',BarGraphMathTypeScore);
BarGraphArrays[25] = new Array ('1025','Element 25',false,'2.5',BarGraphMathTypeScore);
BarGraphArrays[26] = new Array ('1026','Element 26',false,'9.0',BarGraphMathTypeScore);
BarGraphArrays[27] = new Array ('1027','Element 27',false,'2.5',BarGraphMathTypeScore);
BarGraphArrays[28] = new Array ('1028','Element 28',false,'4.5',BarGraphMathTypeScore);
BarGraphArrays[29] = new Array ('1029','Element 29',false,'5.75',BarGraphMathTypeScore);
BarGraphArrays[30] = new Array ('1030','Element 30',false,'2.5',BarGraphMathTypeScore);
</script>
<style>
.BodyHeader { font-family:verdana,arial,helvetica;sans-serif; color:#000000; font-size:16px;
font-weight:normal; text-decoration:none; font-style:normal; }
.BodyHeader2 { font-family:verdana,arial,helvetica;sans-serif; color:#000000; font-size:10px;
font-weight:normal; text-decoration:none; font-style:normal; }
.BodyLink { font-family:verdana,arial,helvetica;sans-serif; color:#5D7BBA; font-size:10px;
font-weight:normal; text-decoration:underline; font-style:normal; }
</style>
</HEAD>
<BODY onload="BarGraphWriteInputs(BarGraphArrays);BarGraphTest(BarGraphArrays,1);" >
<table border=0 align=center>
<tr><td align=center class=BodyHeader>EggHeadCafe.com Bar Graph Demo</td></tr>
<tr><td align=center class=BodyHeader2>By Robbe D. Morris</td></tr>
<tr><td align=center> </td></tr>
<tr><td><div id=BarGraphTable name=BarGraphTable > </div> </td></tr>
<tr><td align=center><Br></td></tr>
<tr><td align=center><a href=javascript:BarGraphTest(BarGraphArrays,1); class=BodyLink>Percentage Example 1</a>
<a href=javascript:BarGraphTest(BarGraphArrays,2); class=BodyLink>Score Example 1</a></td></tr>
<tr><td align=center><a href=javascript:BarGraphTest(BarGraphArrays,3); class=BodyLink >Percentage Example 2</a>
<a href=javascript:BarGraphTest(BarGraphArrays,4); class=BodyLink>Score Example 2</a></td></tr>
</table>
<div id=BarGraphHiddenElements name=BarGraphHiddenElements ></div>
</BODY>
</HTML>
|