examples/squid/legend_offset.rb in squid-1.0.0.beta2 vs examples/squid/legend_offset.rb in squid-1.0.0.beta3
- old
+ new
@@ -3,7 +3,7 @@
# 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}
+ chart data, legend: {right: 50, bottom: 20}
end