Jump to content
Fivewin Brasil

Gráfico a partir do DBF


lenasi

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...