brasten / scruffy Goto Github PK
View Code? Open in Web Editor NEWScruffy Graphs
License: MIT License
Scruffy Graphs
License: MIT License
= scruffy, unofficial release This is a fork from based on the official 0.2.5 release. See below for further a longer description. == DESCRIPTION: * scruffy.rubyforge.org Author:: Brasten Sager ([email protected]) Date:: July 8, 2008 Release:: 0.2.5 Scruffy is a Ruby library for generating high quality, good looking graphs. It is designed to be easy to use and highly customizable. For basic usage instructions, refer to the documentation for Scruffy::Graph. == FORK DESCRIPTION * http://github.com/delano/scruffy/ Author:: Delano Mandelbaum ([email protected]) Author:: Kalin Harvey Date:: December 12, 2008 We love scruffy. Our motivation for creating a forking is to make it useful for hi-resolution graphs and charts. We would love to get our changes in to the official release but until that time they will be available at the GitHub URI above. CHANGES.txt contains everything we've been up to. == FEATURES * Renders to SVG or bitmap (PNG, JPG) == PROBLEMS: * 0.2.3 version has missing legend text when rendering to bitmap. This is strange because the text is there in the SVG before it goes to RMagick. == SYNOPSIS: graph = Scruffy::Graph.new graph.title = "Sample Line Graph" graph.renderer = Scruffy::Renderers::Standard.new graph.add :line, 'Example', [20, 100, 70, 30, 106] graph.render :to => "line_test.svg" graph.render :width => 300, :height => 200, :to => "line_test.png", :as => 'png' == REQUIREMENTS: * Needs RMagick and Magic installed, if you wish to render to bitmap. == INSTALL: * sudo gem install scruffy == LICENSE: See Licence.txt
It looks like this project is dead. Someone should probably udate the README with suggestions for other gems to use.
Hi,
I've just tried to create simple graph using scruffy 0.3.0.beta1 (today's master branch)
require 'scruffy'
graph = Scruffy::Graph.new
graph.title = 'Graph'
graph.renderer = Scruffy::Renderers::Standard.new
graph.point_markers = ['01/2001', '01/2002', '01/2003']
graph.add :line, 'Numbers', [1, 2, 3]
graph.render :to => '/tmp/graph.svg'
and I am getting an error:
components/data_markers.rb:21:in `block in draw': undefined method `first' for "01/2001":String
could you push a fresh gem at some point?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.