Simple Graphing Library

Discussion in 'Ruby' started by Bill Atkins, Jan 7, 2005.

  1. Bill Atkins

    Bill Atkins Guest

    I'm looking for a Ruby library that can generate line, bar, and pie
    graphs from financial data- similar to the graphs Excel generates. I
    want to be able to graph data on the fly and then output it as an
    image file for viewing over the web (from within a Rails application).

    Is there anything that can do this? I've found some libraries on RAA
    for flowchart-style graphs or general graphics libraries, but nothing
    so far that matches my needs.

    Bill Atkins, Jan 7, 2005
    1. Advertisements

  2. Bill Atkins ha scritto:
    sis you try svg::graph ?
    gabriele renzi, Jan 7, 2005
    1. Advertisements

  3. Bill Atkins

    Bill Atkins Guest

    I looked into it, but I'd rather use PNG or some other image format,
    since my users will most likely not have SVG support. Is there some
    way to convert SVG's to PNG's?

    Bill Atkins, Jan 7, 2005
  4. What about RVG? It's a Ruby library, using RubyMagick and ImageMagick,
    that appears to allow SVG-style drawing on PNGs.

    Austin Ziegler, Jan 7, 2005
  5. Bill Atkins ha scritto:
    Well, you can, for sure, but I'm not sure if there is an automatized
    way. Maybe inkscape or sodipodi would allow this.
    gabriele renzi, Jan 7, 2005
  6. Bill Atkins

    Aquila Guest

    imagemagick, runs ons windows and unix/linux
    Aquila, Jan 7, 2005
  7. Bill Atkins

    Tim Hunter Guest

    ImageMagick will convert SVG to other image formats, but its
    capabilities are limited. What it does it does well but it only
    supports a subset of SVG. (The author of ImageMagick tells me he's
    going to be enhancing IM's SVG support very soon.) The ImageMagick
    binding for Ruby is RMagick (
    Tim Hunter, Jan 7, 2005
  8. There are problems for DisplayViewer with RMagick and ImageMagick for
    both the Windows Version and X Display Version. Look the archives, there
    are some threads discussing this issus.
    Sarah Tanembaum, Jan 8, 2005
  9. Right; I was involved with those discussions and proposed that RMagick
    actually fake out the interface for Windows using a Fox display item.

    However, Mr Atkins's problem is specifically for the web -- where the
    DisplayViewer capabilities aren't required. He can simply toss the
    image to a webserver to see that it's right.

    This is still the right solution.

    Austin Ziegler, Jan 9, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.