Created
November 16, 2012 20:31
-
-
Save bholt/4090644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubyvis" | |
vis = Rubyvis::Panel.new do | |
width 150 | |
height 150 | |
bar do | |
data [1, 1.2, 1.7, 1.5, 0.7, 0.3] | |
width 20 | |
height {|d| d * 80} | |
bottom(0) | |
left {index * 25} | |
end | |
end | |
vis.render | |
puts vis.to_svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment