https://github.com/chrishein/ruby_free_chart
Basic Ruby wrapper for JFreeChart
https://github.com/chrishein/ruby_free_chart
Last synced: about 2 months ago
JSON representation
Basic Ruby wrapper for JFreeChart
- Host: GitHub
- URL: https://github.com/chrishein/ruby_free_chart
- Owner: chrishein
- License: other
- Created: 2011-11-06T02:58:51.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-06T03:14:49.000Z (over 13 years ago)
- Last Synced: 2023-03-12T09:46:51.657Z (about 2 years ago)
- Language: Ruby
- Homepage:
- Size: 4 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
=Ruby Free Chart - Basic Ruby wrapper for JFreeChart
The RubyFreeChart is a wrapper for JFreeChart, a Java chart library that makes it easy for developers to display professional quality charts in their applications.
RubyFreeChart is an alternative for projects that for some reason cannot use JRuby and need to display data in high quality charts.
Currently, the only supported type of chart is a very small subset of the Pie Chart.
==Usage
pie_chart = RubyFreeChart::PieChart.new
pie_chart.title = "Cars by Color"
pie_chart.width = 450
pie_chart.height = 300
pie_chart.add_value("Yellow", 87, "#FFFF00")
pie_chart.add_value("Red", 34, "#FF0000")
pie_chart.add_value("Black", 45, "#000")
pie_chart.add_value("Blue", 60, "#0033CC")
pie_chart.add_value("Green", 14, "#336633")pie_chart.render_png_to_file("test_chart.png")
==License
Copyright © 2011 Christian Hein, released under the MIT license