Skip to content

Instantly share code, notes, and snippets.

@bholt
Created November 16, 2012 20:31
Show Gist options
  • Save bholt/4090644 to your computer and use it in GitHub Desktop.
Save bholt/4090644 to your computer and use it in GitHub Desktop.
#!/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