J4L Charts for Ruby

Contents

License


You may freely use the software for personal use.

For commercial use please see:

User Guide 

Follow this link to read our user guide: 

http://www.java4less.com/chartsruby/userguide/tutorialcontents.html

Installation

Requirements

4L Charts requires RMagick. We have developed and tested with Ruby 1.8.6 and RMagick 2.12.0 on Windows and Linux, but it should work with other versions and platforms also.

Installation and demo run

Proceed as follows to test our demo application.

  1. Unzip our file to an empty directory
  2. install our gem by running: 

    gem install J4LChart-2.1.gem

    the ouput should be:

    Successfully installed J4LChart-2.1
    1 gem installed
    Installing ri documentation for J4LChart-2.1...
    Installing RDoc documentation for J4LChart-2.1...


  3. run now our sample application with

    ruby main.rb

    the output should be:

    CHART API EXAMPLES

    creating min/max chart
    creating barchart 3D
    creating linechart 3D
    creating bubblechart
    creating piechart
    creating piechart 3D
    creating barchart
    .....

    CHART LOADER EXAMPLES

    creating stacked axis chart
    creating combined chart
    creating horiz. bars chart
    ...
  4. Once the execution has finished you will see all created charts (png files) in the working directory

 

Installating RMagick on Ubuntu and Ruby 1.8

If RMagick is not installed in your system you can install it by running these 3 commands (on Ubuntu):

sudo apt-get install imagemagick

sudo apt- get install libmagick9-dev ruby1.8-dev

gem install rmagick