graficos en asp

k?lk?
19 de Noviembre del 2002
como hacer o aplicar graficos en asp

vivis
19 de Noviembre del 2002
Hola, yo tengo hecho una página que hace gráficos. Aquí te paso el código, a ver si te ayuda. El truco está en crear tablas con ancho en % y alto fijo, si las quieres horizontales, y viceversa si las quieres verticales. Aqui te paso el código. Dibujo las variables a partir de unos datos que tengo en una matriz, pero a eso no le hagas caso, tu haz caso a la variables porcentaje a la la <td></td> donde aparece. Para que cada fila tenga una anchura distinta, las meto en una tabla, que sino, pone todas con la anchura de la primera fila. Espero haberte ayudado.

<!--Segunda columna. Se dibujan las graficas-->
<td style="width:60%;height:100%">
<table style="width:100%;height:100%;table-layout:fixed">
<td width="100%" height"5%" valign="center">
<table style="width:100%;height:100%;table-layout:fixed">
<tr>
<td width="50%" height="99%" align="left"><font size="1" color="#000000">0%</font></td>
<td width="50%" height="99%" align="right"><font size="1" color="#000000">100%</font></td>
<tr>
<td width="100%" height="1%" bgColor="#000000" colspan="2"></td>
</table>
</td>
<tr>

<td style="width:100%;height:95%" valign="center">
<table style="width:100%;height:100%;table-layout:fixed">
<% 'Variable para recorrer la matriz
j=0
DO WHILE j<contadorActividades
porcentaje=100*todos(j,0)/todos(j,1)
resto=100-porcentaje
porcentaje=cInt(porcentaje)%>
<tr>
<td width=100% height=5 valign="center">
<table style="width:100%;height:100%;table-layout:fixed">
<% color=color+611060
color=color-040303
colorFinal="#" &color%>
<TD valign="center" width=<%=porcentaje%>% height=100% bgColor="<%=colorFinal%>"></td>
<td valign="center" width=<%=resto%>% height=100% bgcolor="#eff6fc"></td>
</table>
</td>
<%j=j+1
LOOP %>
</table>
</td>
</table>
</Td>