Chart-script

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

    Chart-script

    Hi,

    anybody knows a good class who makes possible to create charts as
    line-graph ?

    Mostly I can find only classes to include with more as 50kilobytes. But
    I need a small programm, because I have 750 users in one moment.

    The most classes includes pie,circles,... so they are to big.

  • Gerard

    #2
    Re: Chart-script

    FusionChart has worked great for me. Uses xml...

    Comment

    • Malcolm Dew-Jones

      #3
      Re: Chart-script

      langhammer@gmai l.com wrote:
      : Hi,

      : anybody knows a good class who makes possible to create charts as
      : line-graph ?

      : Mostly I can find only classes to include with more as 50kilobytes. But
      : I need a small programm, because I have 750 users in one moment.

      : The most classes includes pie,circles,... so they are to big.

      Not clear what you have tried.

      Do you mean a php class to create a gif/jpeg/etc image of a chart?
      Or a Java class for an applet to display on the browser.
      Or a Javascript class to do whatever it does.

      Read up on gnuplot. It can create all sorts of graphs and output various
      output formats. Being a compiled program it is fast to run. Since it
      runs as a standalone program (i.e. not part of your application) then
      there are no GPL licensing issues.

      Display the graph as an image ( <img src="a-script.phgp" /> ). The php
      script needs input which I don't show, either query params or session
      data. Your php script will accept the input and prepare the gnuplot data
      (typically just a few lines in a text file). Then your php shells out to
      gnuplot with that as its input, gnuplot generates the binary image data
      you need. I don't recall if gnuplot displays that data on stdout (in
      which case you need do nothing) or whether you have to spool a work file,
      but either way is pretty easy.


      --

      This programmer available for rent.

      Comment

      • Colin McKinnon

        #4
        Re: Chart-script

        Malcolm Dew-Jones wrote:
        [color=blue]
        > langhammer@gmai l.com wrote:
        >
        > : anybody knows a good class who makes possible to create charts as
        > : line-graph ?
        >
        > : Mostly I can find only classes to include with more as 50kilobytes. But
        > : I need a small programm, because I have 750 users in one moment.
        >
        > : The most classes includes pie,circles,... so they are to big.
        >
        > Not clear what you have tried.
        >
        > Do you mean a php class to create a gif/jpeg/etc image of a chart?
        > Or a Java class for an applet to display on the browser.
        > Or a Javascript class to do whatever it does.
        >
        > Read up on gnuplot. It can create all sorts of graphs and output various
        > output formats. Being a compiled program it is fast to run. Since it
        > runs as a standalone program (i.e. not part of your application) then
        > there are no GPL licensing issues.
        >[/color]

        Personally I use jpgraph (a large PHP include file). I think you might be
        surprised at how well it scales compared with running gnuplot and the docs
        are (IMHO) a lot easier to comprehend. Gnuplot *might* be better for
        working with large datasets. If the data isn't very dynamic, jpgraphs
        caching will definitely give it the edge.

        C.

        Comment

        Working...