I have to scale a linear TGRAPH
For example
- Code: Select all Expand view
- #Include "FiveWin.Ch"
Function Main()
LOCAL aMisura := {}
LOCAL aOra := {}
LOCAL oWnd , oGraph
aMisura := { 136.08, 136.08, 136.05, 136.10, 136.10, 137.10, 136.70, 136.70, 137.11, 137.90, 137.60 }
DEFINE WINDOW oWnd FROM 1, 1 TO 20, 80 TITLE "Misure"
oGraph:=TGraph():New( 0 , 0 , oWnd ,oWnd:nWidth()-8 , oWnd:nHeight()-40 )
oGraph:SetYVals( aOra )
oGraph:cTitX := "Misura"
oGraph:cTitY := "Ora"
oGraph:lYVal :=.T.
oGraph:lLegends:=.T.
oGraph:nType := 2
oGraph:AddSerie( aMisura , "MISURE" , RGB( 128 , 128 ,255 ) )
ACTIVATE WINDOW oWnd ;
ON PAINT ( oGraph:nWidth := oWnd:nWidth - 8 , ;
oGraph:nHeight := oWnd:nHeight -40 , ;
oGraph:Refresh(.f.))
RETURN (NIL)
This is graph.
I want this
I want set min and max in Y Axes
This is created by excel
many thanks
marco