Function Grafico6()
# Include "Fivewin.Ch"
# Include "TGraph.ch"
LOCAL oDlg, oGraph
DEFINE DIALOG oDlg SIZE 600, 500
oDlg:lHelpIcon := .F.
@ 3, 1 GRAPH oGraph SIZE 250, 200 TYPE 1 YVALUES 3D XGRID YGRID XVALUES LEGENDS
oGraph:aSeries = { { "Serie 1", CLR_CYAN , 1 , },;
{ "Serie 2", CLR_HRED , 1 , .F. } }
oGraph:nPoint:=1
oGraph:cSubTit:= "Titulo GRAFICO"
oGraph:cTitX := "Titulo X"
oGraph:cTitY:="Titulo Y"
oGraph:nPenWidth:=5
oGraph:lBorders := .T.
oGraph:lTitle := .T.
oGraph:lLegends := .T.
oGraph:lxVal := .T.
oGraph:lyVal := .T.
oGraph:l3D := .T.
oGraph:lxGrid := .T.
oGraph:lyGrid := .T.
oGraph:lDotted := .T.
oGraph:aYVals = { "Consulta", "Altura", "Preocu" }
oGraph:aData = { { 1500, 800, 40 },;
{ 200, 150, 10,},;
{ 350, 400, 70} }
oGraph:nClrX = CLR_GREEN
oGraph:nClrY = CLR_RED
ACTIVATE DIALOG oDlg CENTER ON INIT SET_FONTS( oGraph )
RETURN NIL
FUNCTION SET_FONTS( oGraph )
oGraph:aFont[1] := TFont():New("Arial",0,-24,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[2] := TFont():New("Arial",0,-13,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[3] := TFont():New("Arial",0,-13,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[4] := TFont():New("Arial",0,-13,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[5] := TFont():New("Arial",0,-15,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[6] := TFont():New("Arial",0,-15,.F.,.T.,898,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[7] := TFont():New("Arial",0,-16,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:aFont[8] := TFont():New("Arial",0,-15,.F.,.T.,0,0,,.F.,.F.,.F.,0,3,2,1,,34)
oGraph:Refresh()
RETURN NIL