This simple demonstration shows two graphs using the same data. The first is a bar chart:

ASP bar chart

The second is a pie chart. The background colour is set to light grey to show the overall size of the image.

ASP pie chart

There are two scripts involved here. The page that is displaying in the browser now contains two IMG tags, each of which calls up the asp script that produces the graphs.

Download the demo scripts or read the description.

Back to the csDrawGraph page.

Our Demonstration Area has some examples of creating bar charts, pie charts and line graphs using different display properties.

function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); } function AcceptCookies() { createCookie("cookie-site","true",120); createCookie("cookie-tracking","true",120); createCookie("cookie-remarketing","true",120); document.getElementById("overlay").style.display = "none"; } ]]>


This site uses cookies for functionality, traffic analysis and for targeted advertising. Click the Accept button to accept our Cookie Policy. The Cookie Policy page offers configuration for a reduced set of cookies for this site.