You may have seen web pages that include a horizontal bar graph showing responses to a questionaire or other numeric results without the use of a graphing tool. This article will demonstrate how to build such a graph using html and a dataset.
By: John Kilgo Date: July 28, 2003 Download The Code.
Printer Friendly Version
It really is not difficult to create a horizontal bar graph using an HTML table. All you need to do is compute a percentage of a total for each item and then set
We will do all the computations in a code behind file (bargraph.aspx.vb) Which means we must also build out. To Accomodate this we include on a
<% @ Page language = "vb" autoeventwireup = "false" src = "bargraph.aspx.vb" inherits = "dotnetjohn.bargraph"%>