ChartDirector 6.0 (Ruby Edition)

Installation


Ruby Version Compatibility

ChartDirector for Ruby requires at least Ruby 1.8, and has been tested up to Ruby 2.2 (the latest Ruby release as of the date of this document).

Extracting ChartDirector for Ruby

ChartDirector for Ruby is released as a zip file on Windows, and as a tar.gz file on Linux, FreeBSD, Solaris and Mac OS X. To use ChartDirector for Ruby, the first step is to extract the ChartDirector for Ruby distribution to an empty directory.

Running Ruby On Rails Sample Scripts

ChartDirector for Ruby comes with numerous Ruby On Rails sample scripts. They are packaged as a Ruby On Rails application in "ChartDirector/railsdemo". and is based on Rails 3.2. To try it, you would need to have Rails 3.2 or a compatible version in your Ruby system. You may then go to the "ChartDirector/railsdemo" subdirectory, and start the application using Ruby WebBrick as follows:

rails server

After starting WebBrick, you should be able to access the ChartDirector sample scripts at port 3000.

http://127.0.0.1:3000

Important Notes for Different Rails Versions

The sample Rails application is based on Rails 3.2. Because different Rails versions are not entirely compatible, if you would like to try the sample code in a different Rails version, you may need to modify them.

The followings are some of the differences between various Rails version:

Running Command Line Ruby Sample Scripts

In addition to Ruby On Rails sample scripts, ChartDirector for Ruby also comes with numerous command line Ruby sample scripts in "ChartDirector/rubydemo". These scripts create charts as image files. To run them, please follow the steps below to install ChartDirector for Ruby in your system first.

Using ChartDirector in Your Own Ruby or Ruby On Rails applications

The ChartDirector for Ruby library is in "ChartDirector/railsdemo/vendor". To use ChartDirector in your own Ruby or Ruby On Rails application, you need to copy the ChartDirector for Ruby library to a directory in your Ruby module search path. You may use one of the following methods:

Installing the ChartDirector License

If you have purchased a license to use ChartDirector, you should have a license key delivered to your via email and postal mail.

If your license key is for upgrading from a previous version of ChartDirector, you need to append the upgrade license key to the previous version license key, and use the combined license key.

There are two alternative methods to install the license key.