lenasi Posted May 11, 2004 Report Share Posted May 11, 2004 Amigos, Baixei o exemplo de gráfico em dicas, e achei o máximo. Mas gostaria de aperfeiçoa-lo. Usando informações de um banco de dados. oGraph:AddSerie({ 428,200,100 }, "Serie 1", RGB(255,102, 10)) oGraph:AddSerie({ 75,80,50 }, "Serie 2", RGB(255,128,128)) oGraph:AddSerie({ 186,300,200 }, "Serie 3", RGB(128,128,255)) oGraph:SetYVals({ "Jan", "Fev", "Mar" } ) Com as funções acima, gostaria de saber como fazer para adicionar vetores substituindo as informações. Exemplo: vMarca := ({"Jan", "Fev", "Mar"}) vValores := ({100, 150, 200},{100, 150, 200},{100, 150, 200}) vSerie := ({"Serie1", "Serie2", "Serie3"}) oGraph:AddSerie({ vValores }, vSerie , RGB( 55,201, 48)) oGraph:SetYVals( vMarca ) Seria isto acima??? No aguardo. Quote Link to comment Share on other sites More sharing options...
vagner Posted May 11, 2004 Report Share Posted May 11, 2004 Olá Lenasi, Bom eu não testei parte de gráficos, mas pelo que dá para entender é : vMarca := {"Jan", "Fev", "Mar"} vValores := {100, 150, 200},{100, 150, 200},{100, 150, 200} vSerie := {"Serie1", "Serie2", "Serie3"} oGraph:AddSerie( vValores[1] , vSerie[1] , RGB( 55,201, 48)) oGraph:AddSerie( vValores[2] , vSerie[2] , RGB( 55,201, 48)) oGraph:AddSerie( vValores[3] , vSerie[3] , RGB( 55,201, 48)) oGraph:SetYVals( vMarca ) Abraços Vagner Wirts São Paulo-Brasil Quote Link to comment Share on other sites More sharing options...
lenasi Posted May 12, 2004 Author Report Share Posted May 12, 2004 Muito Obrigado!!! Valeu!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.