Project

charts

0.0
No commit activity in last 3 years
No release in over 3 years
Create charts, graphs and info chartics with ruby as SVG, JPG or PNG images
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
~> 0.1.3
 Project Readme

Gem Version Build Status Code Climate

Charts

Create charts, graphs and info graphics with ruby as SVG, JPG or PNG images

Usage

You can use the command line tool, get help with:

$ bin/charts --help

Create images:

$ bin/charts --data 33,22,8 --filename images/dots.jpg

example dot image

$ bin/charts --data 18,16 --data 12,21 --style bar --title Seats --labels Reserved,Sold --group-labels 2016,2017 --filename images/bars.jpg

example bar chart

$ bin/charts --data 55,20,20 --style pie --title Pies --labels Apple,Crumble,Cherry --colors ForestGreen,Chocolate,Crimson --width 350 --height 350 --filename images/pie.jpg

example pie chart

$ bin/charts --data 18,16 --labels Swimmers,Divers --colors Navy,Teal --style manikin --item-width 50 --item-height 50 --filename images/manikin.jpg

example manikin image

See https://en.wikipedia.org/wiki/Web_colors#X11_color_names to find more color names you can use.

Create text:

$ bin/charts --columns 20 --data 55,33,22 --colors x,o,* -t txt

xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxooooo
oooooooooooooooooooo
oooooooo************
**********

Development

Start by installing bundler:

gem install bundler

And then install the dependencies:

bundle install

Run the test suite:

rake

or

rspec