Drawing circles in php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Charlton-Thomson

    Drawing circles in php

    Hi,

    I am passing 8 values each from 1 to 10 to a php page and at the moment I am
    drawing a bar chart using shaded cells to represent the magnitude of each
    bar.

    I would also like to draw these values into a pie chart ... can anyone tell
    me if this is possible? If so can you point me to some example code?

    Help appreciated.

    Paul.


  • Oli Filth

    #2
    Re: Drawing circles in php

    Paul Charlton-Thomson said the following on 10/06/2005 23:33:[color=blue]
    > Hi,
    >
    > I am passing 8 values each from 1 to 10 to a php page and at the moment I am
    > drawing a bar chart using shaded cells to represent the magnitude of each
    > bar.
    >
    > I would also like to draw these values into a pie chart ... can anyone tell
    > me if this is possible? If so can you point me to some example code?
    >[/color]

    I doubt there's any built-in pie-chart functions in PHP, but it's not
    hard to draw your own.




    --
    Oli

    Comment

    • Oli Filth

      #3
      Re: Drawing circles in php

      Oli Filth said the following on 11/06/2005 01:54:[color=blue]
      > Paul Charlton-Thomson said the following on 10/06/2005 23:33:
      >[color=green]
      >> Hi,
      >>
      >> I am passing 8 values each from 1 to 10 to a php page and at the
      >> moment I am
      >> drawing a bar chart using shaded cells to represent the magnitude of each
      >> bar.
      >>
      >> I would also like to draw these values into a pie chart ... can anyone
      >> tell
      >> me if this is possible? If so can you point me to some example code?
      >>[/color]
      >
      > I doubt there's any built-in pie-chart functions in PHP, but it's not
      > hard to draw your own.
      >[/color]

      Sorry, I didn't finish what I was gonna say!

      There's functions such as imagefilledarc( ), which would probably be
      enough to do what you want.




      --
      Oli

      Comment

      • Paul Charlton-Thomson

        #4
        Re: Drawing circles in php

        Thank Oli,

        Looks like I have some more learning to do ...

        Paul.

        "Oli Filth" <catch@olifilth .co.uk> wrote in message
        news:LEqqe.1123 2$m4.7075@newsf e3-gui.ntli.net...[color=blue]
        > Oli Filth said the following on 11/06/2005 01:54:[color=green]
        > > Paul Charlton-Thomson said the following on 10/06/2005 23:33:
        > >[color=darkred]
        > >> Hi,
        > >>
        > >> I am passing 8 values each from 1 to 10 to a php page and at the
        > >> moment I am
        > >> drawing a bar chart using shaded cells to represent the magnitude of[/color][/color][/color]
        each[color=blue][color=green][color=darkred]
        > >> bar.
        > >>
        > >> I would also like to draw these values into a pie chart ... can anyone
        > >> tell
        > >> me if this is possible? If so can you point me to some example code?
        > >>[/color]
        > >
        > > I doubt there's any built-in pie-chart functions in PHP, but it's not
        > > hard to draw your own.
        > >[/color]
        >
        > Sorry, I didn't finish what I was gonna say!
        >
        > There's functions such as imagefilledarc( ), which would probably be
        > enough to do what you want.
        >
        > http://uk2.php.net/manual/en/functio...efilledarc.php
        >
        >
        > --
        > Oli[/color]


        Comment

        • Yttrium

          #5
          Re: Drawing circles in php

          "Paul Charlton-Thomson" <paul@charlto n-thomson.com> a écrit dans le message
          de news: d8d4gn$hgc$1@nw rdmz03.dmz.ncs. ea.ibs-infra.bt.com...[color=blue]
          > Hi,
          >
          > I am passing 8 values each from 1 to 10 to a php page and at the moment I[/color]
          am[color=blue]
          > drawing a bar chart using shaded cells to represent the magnitude of each
          > bar.
          >
          > I would also like to draw these values into a pie chart ... can anyone[/color]
          tell[color=blue]
          > me if this is possible? If so can you point me to some example code?
          >
          > Help appreciated.
          >[/color]

          Hi ,
          Only one word : JpGraph :


          Bye,

          --



          Comment

          • cyberhorse

            #6
            Re: Drawing circles in php

            I second jpgraph. It's an excellent php library for drawing all kinds
            of graphs. It's also pretty popular, so you would get good support from
            users and chances are it might already be on the server.

            Comment

            • Paul Charlton-Thomson

              #7
              Re: Drawing circles in php

              Thanks,

              Sadly I have been upgraded to PHP5 and JpGraph doesn't work with 5.0

              Have got it working with GD2.0 in PHP5 :-)
              [color=blue]
              >
              > Hi ,
              > Only one word : JpGraph :
              > http://www.aditus.nu/jpgraph/index.php
              >
              > Bye,
              >
              > --
              > http://www.danstesyeux.com
              >
              >[/color]


              Comment

              • Yttrium

                #8
                Re: Drawing circles in php

                "Paul Charlton-Thomson" <paul@charlto n-thomson.com> a écrit dans le message
                de news: d8knjj$h9$1@nwr dmz02.dmz.ncs.e a.ibs-infra.bt.com...[color=blue]
                > Thanks,
                >
                > Sadly I have been upgraded to PHP5 and JpGraph doesn't work with 5.0
                >
                > Have got it working with GD2.0 in PHP5 :-)
                >[/color]

                Read this :


                " Note: The 2.x series is only for PHP5. It will not work on PHP4 "

                Doesn't work with PHP 5 ??!!


                Comment

                Working...