home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 October
/
PCWorld_2000-10_cd1.bin
/
Komunik
/
sambar
/
_setup.1
/
GRAPHIT.STM
< prev
next >
Wrap
Text File
|
1999-01-16
|
1KB
|
52 lines
<HTML>
<HEAD><TITLE>Bar Chart Output</TITLE>
<RCinclude /barchart/barchart.js>
</HEAD>
<BODY bgcolor=white text=black link=black vlink=black alink=black>
<CENTER>
<BR>
<BR>
<FONT SIZE=5 COLOR=#996633><B>Bar Chart Output</B></FONT>
<BR>
<BR>
<BR>
<SCRIPT Language="JavaScript"><!--
var myChart = new Chart (
"Sample Title<BR> goes here",
"Horizontal Label",
"<I>Vertical<BR>Label</I>",
"<RC$style>", // "veritcal" or "horizontal"
300, // length of horizontal axis
200, // length of vertical axis
90, // width of bar as a % of axis length
"step3-white.gif", // scale image
"base-white.gif", // base image
6 // approx. number of ticks to show
);
<RCif RC$style = vertical>
<RC$barimg = "bar01.gif">
<RCelse>
<RC$barimg = "bar02.gif">
<RCendif>
myChart.data[0] = new Data("Value-1", <RC$val1>, <RC$barimg>, "-1");
myChart.data[1] = new Data("Value-2", <RC$val2>, <RC$barimg>, "-1");
myChart.data[2] = new Data("Value-3", <RC$val3>, <RC$barimg>, "-1");
myChart.data[3] = new Data("Value-4", <RC$val4>, <RC$barimg>, "-1");
myChart.data[4] = new Data("Value-5", <RC$val5>, <RC$barimg>, "-1");
myChart.data[5] = new Data("Value-6", <RC$val6>, <RC$barimg>, "-1");
initChart(myChart);
doChart(myChart,0);
// -->
</SCRIPT>
</CENTER>
<P>
</BODY>
</HTML>