Dynamic Graphs In PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • anubhagarwal@gmail.com

    Dynamic Graphs In PHP

    Hello Friends
    Friends I need some help regarding graph in PHP.
    I know how to draw a graph in PHP. But i dont know whether i can
    dynamically retreive data and refresh graph in PHP. If any have any
    knowlegde regarding this so please help me. Tell me how i can
    dynamically retrive data and refresh graph using PHP.
    I will be thankful to you
    Please help me.
    Its urgent
    Regards
    Anu

  • \(¯`·..Yttrium ...·´¯\)

    #2
    Re: Dynamic Graphs In PHP

    Hello,


    Bye,


    <anubhagarwal@g mail.com> a écrit dans le message de news:
    1114062803.8495 76.218620@f14g2 00...legr oups.com...[color=blue]
    > Hello Friends
    > Friends I need some help regarding graph in PHP.
    > I know how to draw a graph in PHP. But i dont know whether i can
    > dynamically retreive data and refresh graph in PHP. If any have any
    > knowlegde regarding this so please help me. Tell me how i can
    > dynamically retrive data and refresh graph using PHP.
    > I will be thankful to you
    > Please help me.
    > Its urgent
    > Regards
    > Anu
    >[/color]


    Comment

    • Colin McKinnon

      #3
      Re: Dynamic Graphs In PHP

      anubhagarwal@gm ail.com wrote:
      [color=blue]
      > Hello Friends
      > Friends I need some help regarding graph in PHP.
      > I know how to draw a graph in PHP. But i dont know whether i can
      > dynamically retreive data and refresh graph in PHP. If any have any
      > knowlegde regarding this so please help me. Tell me how i can
      > dynamically retrive data and refresh graph using PHP.
      > I will be thankful to you
      > Please help me.
      > Its urgent
      > Regards
      > Anu[/color]

      Depends what you mean by graphs. If it's numerical charts, then JPGraph. If
      its the more mathematical version (networks with nodes / edges / vertices)
      try graphviz (not written in PHP).

      HTH

      C.

      Comment

      • Craig Storey

        #4
        Re: Dynamic Graphs In PHP

        anubhagarwal@gm ail.com wrote:[color=blue]
        > Hello Friends
        > Friends I need some help regarding graph in PHP.
        > I know how to draw a graph in PHP. But i dont know whether i can
        > dynamically retreive data and refresh graph in PHP. If any have any
        > knowlegde regarding this so please help me. Tell me how i can
        > dynamically retrive data and refresh graph using PHP.
        > I will be thankful to you
        > Please help me.
        > Its urgent
        > Regards
        > Anu
        >[/color]

        Jpgraph will do the ploting, <meta http-equiv="refresh" content="60">
        will refresh the page every 60s.

        You're not thinking of a "real-time" chart or anything like that are
        you? That jpgraph/php can't do you need some sort of streaming app then.

        Craig

        Comment

        • anubhagarwal@gmail.com

          #5
          Re: Dynamic Graphs In PHP

          Thanks to all for the kind concern
          Craig as u said taht i can refresh the page with <meta
          http-equiv="refresh" content="60"> after every 60s.
          First thing is can u give me a sample script and an idea that how i can
          test that teh graph is refreshing?
          Actually what i hav to do is i have to retrieve data from web services
          aftter every 3 seconds and then i have to move my graph in forward
          direction. so that new data can be displayed in the futher incoming
          graph.
          More clearly I have to draw a graph in php just like the graphs that
          are displayed for ECG or for any heart disorder.
          Please give me a clear idea.
          So that i can make it early because i am a newbie to php.
          Thanks & Regards
          Anubha

          Comment

          • \(¯`·..Yttrium ...·´¯\)

            #6
            Re: Dynamic Graphs In PHP

            Php is probably not the good choice for this..
            Take a look to java applets ..


            <anubhagarwal@g mail.com> a écrit dans le message de news:
            1114173037.8476 51.103390@o13g2 00...legr oups.com...[color=blue]
            > Thanks to all for the kind concern
            > Craig as u said taht i can refresh the page with <meta
            > http-equiv="refresh" content="60"> after every 60s.
            > First thing is can u give me a sample script and an idea that how i can
            > test that teh graph is refreshing?
            > Actually what i hav to do is i have to retrieve data from web services
            > aftter every 3 seconds and then i have to move my graph in forward
            > direction. so that new data can be displayed in the futher incoming
            > graph.
            > More clearly I have to draw a graph in php just like the graphs that
            > are displayed for ECG or for any heart disorder.
            > Please give me a clear idea.
            > So that i can make it early because i am a newbie to php.
            > Thanks & Regards
            > Anubha
            >[/color]


            Comment

            • NC

              #7
              Re: Dynamic Graphs In PHP

              anubhagar...@gm ail.com wrote:[color=blue]
              >
              > what i hav to do is i have to retrieve data from web services
              > aftter every 3 seconds and then i have to move my graph in forward
              > direction. so that new data can be displayed in the futher incoming
              > graph.
              > More clearly I have to draw a graph in php just like the graphs that
              > are displayed for ECG or for any heart disorder.
              > Please give me a clear idea.
              > So that i can make it early because i am a newbie to php.[/color]

              Web service is a very poor choice of solution for this purpose.
              Given that you require data acquisition every three seconds, you
              should consider an approach that does not depend on HTTP. If
              you use a Web service, your client will have to open a new
              connection to the server every three seconds, transmit a request,
              and receive a response. A better solution (for example, based
              on sockets) would be for the client to establish the connection
              once and keep listening for server output. This means that the
              client would have to run continuously and, therefore, shouldn't
              be a script of any kind. Consider a Java applet or a standalone
              executable program...

              Cheers,
              NC

              Comment

              Working...