Essaie ça ki fonctionne pas mal. Après, il te reste qu'a aller chercher les infos dans ta base de données avec ASP
PHP Code:
<HTML>
<!-- Date de création: 12/02/03 -->
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META NAME="Description" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Author" CONTENT="Enzo19">
</HEAD>
<BODY>
<SCRIPT language="JavaScript" title="Enzo">
var graphimageP="graphique.gif"
var graphv=new Array()
graphv[0]=["Catégorie 1","152%"]
graphv[1]=["Catégorie 2","73%"]
graphv[2]=["Catégorie 3","63%"]
graphv[3]=["Catégorie 4","21%"]
function graphitP(g,gwidth){
outputP='<table border="0" cellspacing="0" cellpadding="0">'
for (i=0;i<g.length;i++){
calwidthP=gwidth*(parseInt(g[i][1])/100)
outputP+='<tr><td><font face="Verdana" size="1">'+g[i][0]+' </td><td><font face="Verdana" size="1"><img src="'+graphimageP+'" width="'+calwidthP+'" height="10"> '+g[i][1]+'</td></tr>'
}
outputP+='</table>'
document.write(outputP)
}
graphitP(graphv,200)
</SCRIPT>
</BODY>
</HTML>