Sha256: 61ef98185d954e82843e3aee315577ec6e27f240a03eb2a92db7928419593cfd
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
# By default, <code>chart</code> adds a legend in the top-right corner. # # You can use the <code>:legend</code> option to change the position of the legend. # filename = File.basename(__FILE__).gsub('.rb', '.pdf') Prawn::ManualBuilder::Example.generate(filename) do data = {views: {2013 => 182, 2014 => 46}, uniques: {2013 => 94, 2014 => 27}} chart data, legend: {offset: 50} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
squid-1.0.0.beta2 | examples/squid/legend_offset.rb |
squid-1.0.0.beta1 | examples/squid/legend_offset.rb |