FoxPro/Visual FoxPro - EXPERTOS EN MSCHART

 
Vista:

EXPERTOS EN MSCHART

Publicado por Hugo R. (107 intervenciones) el 10/08/2003 20:38:03
BUEN DIA AMIGOS DE LA WEB, NECSITO ALGUIEN QUE ME DIERA UN EJEMPLO REAL DE COMO PODER GRAFICAR:
1.- TENGO UN ARCHIVO LLAMADO T_SALDOS
2.- LOS CAMPOS SON (INSCRIPCION, MATERIAL Y LIBROS), ESTOS CAMPOS SON NUMERICOS
3.- EN LA FORMA TENGO EL CONTROL MSCHART
4.- YA TENGO UNA VISTA FILTRADA POR MES CON LOS CAMPOS (INSCRIPCION. MATERIAL Y LIBROS)
5.- LO QUE YO DESO ES UNA GRAFICA DE BARRA QUE MUESTRE LOS RESULTADOS DE LA VISTA.
NOTA: ESTOY PROGRAMANDO CON VFP-7 Y ESTAMOS MANEJANDO UN PROYECTO, NO MANEJAMOS TABLAS LIBRES, TODO SE MANEJA CON SELECT'S..!! GRACIAS POR LA AYUDA..!!
YA INVESTIGUE POR TODOS LADOS ME FUI A LOS EJEMPLOS QUE HAY EN LA WEB Y TODO ESTA CON EL COMANDO MSGRAPH.!!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:EXPERTOS EN MSCHART

Publicado por wences (457 intervenciones) el 11/08/2003 17:03:22
Te envie a tu correo un codigo de ejemplo , esto es en resumen para que lo vean los demas :

thisform.chart1.columncount = 0
thisform.chart1.stacking = .F.
thisform.chart1.charttype = 0 && barra en 3d 1->barra en 2d
thisform.chart1.rowcount = 1 && numero de filas
thisform.chart1.row = 1 && posicionarse
thisform.chart1.rowlabel = "prueba 1" && texto del grafico
thisform.chart1.columncount=10 && numero maximo de columnas (ojo)
*** un simple bucle para un cursor con scan o do while para una tabla
***aqui use un for x es mas facil de ver
for x=1 to 10
thisform.chart1.column=x && numero de columna (se incrementa)
thisform.chart1.columnlabel=alltrim(str(x,2,0)) && etiqueta de columna no todas las graficas los presentan
thisform.chart1.data=x*2 && este seria el valor que queremos , puede ser un campo de una tabla una variable , etc , eso si numericos
next x && repetir el bucle ....

existe una ayuda en windows llamada mschrt98.chm (en el directorio de windows) , al menos en win98 , me imagino que en las demas versiones sera algo muy similar ...

Espero te sirva...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar