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

  1. <RC$title = Bar Chart Sample>
  2. <RC$navurl = /samples/index.stm>
  3. <RC$navname = Samples>
  4. <RCinclude /header.stm>
  5. <BR>
  6. <FONT SIZE=5><B>JavaScript Bar Chart</B></FONT>
  7. <BR>
  8. <BR>
  9. This <B>fantastic</B> JavaScript barchart code was created by
  10. Michael Brownlow (<A HREF="http://www.wsmake.org/tools/jsbc/">
  11. Barchart Homepage</A>).  
  12. I recommend you get the current complete distribution from Mike
  13. if you choose to use the BarChart code.
  14. <P>
  15. One bug I have found is that if the values are the same or are
  16. too close in range, the rounding algorithm goes into a loop.
  17. <BR>
  18. <BR>
  19. <FORM method=POST action="graphit.stm">
  20. <SELECT NAME=style>
  21. <OPTION VALUE=vertical SELECTED> Vertical
  22. <OPTION VALUE=horizontal> Horizontal
  23. </SELECT>
  24. <BR>
  25. Value 1 <INPUT type=text name=val1 value="100"><BR>
  26. Value 2 <INPUT type=text name=val2 value="200"><BR>
  27. Value 3 <INPUT type=text name=val3 value="300"><BR>
  28. Value 4 <INPUT type=text name=val4 value="400"><BR>
  29. Value 5 <INPUT type=text name=val5 value="500"><BR>
  30. Value 6 <INPUT type=text name=val6 value="600"><BR>
  31. <INPUT type=submit value="Graph Values">
  32. </FORM>
  33. <BR>
  34. <RCinclude /footer.stm>
  35.