home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / sambar / sambar51p.exe / docs / barchart / GRAPHIT.STM < prev    next >
Encoding:
Text File  |  2002-01-13  |  1.3 KB  |  49 lines

  1. <RC$title = Bar Chart>
  2. <RC$navurl = /samples/index.stm>
  3. <RC$navname = Samples>
  4. <RC$subnavurl = /barchart/index.stm>
  5. <RC$subnavname = Bar Chart>
  6. <RCinclude /header.stm>
  7.  
  8. <RCinclude /barchart/barchart.js>
  9. <BR>
  10. <BR>
  11. <SCRIPT Language="JavaScript"><!--
  12.  
  13. var myChart = new Chart (
  14.     "Sample Title<BR> goes here",
  15.     "Horizontal Label",
  16.     "<I>Vertical<BR>Label</I>",
  17.     "<RC$style>",        // "veritcal" or "horizontal"
  18.     300,            // length of horizontal axis
  19.     200,            // length of vertical axis
  20.     90,            // width of bar as a % of axis length
  21.     "step3-white.gif",    // scale image
  22.     "base-white.gif",    // base image
  23.     6            // approx. number of ticks to show
  24. );
  25.  
  26. <RCif RC$style = vertical>
  27. <RC$barimg = "bar01.gif">
  28. <RCelse>
  29. <RC$barimg = "bar02.gif">
  30. <RCendif>
  31.  
  32. myChart.data[0] = new Data("Value-1", <RC$val1>, <RC$barimg>, "-1");
  33. myChart.data[1] = new Data("Value-2", <RC$val2>, <RC$barimg>, "-1");
  34. myChart.data[2] = new Data("Value-3", <RC$val3>, <RC$barimg>, "-1");
  35. myChart.data[3] = new Data("Value-4", <RC$val4>, <RC$barimg>, "-1");
  36. myChart.data[4] = new Data("Value-5", <RC$val5>, <RC$barimg>, "-1");
  37. myChart.data[5] = new Data("Value-6", <RC$val6>, <RC$barimg>, "-1");
  38.  
  39. initChart(myChart);
  40.  
  41. doChart(myChart,0);
  42.  
  43. // -->
  44. </SCRIPT>
  45.  
  46. </CENTER>
  47. <BR>
  48. <RCinclude /footer.stm>
  49.