Sha256: 5b4941ba40fe1537653d5524dfdbb71b2ecc8b56651da5e8b14b2e3e74885d6c

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

# By default, <code>chart</code> does not write value labels on the chart.
#
# You can use the <code>:labels</code> option to enable this behavior.
#
filename = File.basename(__FILE__).gsub('.rb', '.pdf')
Prawn::ManualBuilder::Example.generate(filename) do
  data = {a_very_long_label_to_test_padding_with_labels: {2013 => 182000, 2014 => -182000, 2015 => 182000}}
  chart data, labels: true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squid-1.0.0.beta2 examples/squid/labels.rb
squid-1.0.0.beta1 examples/squid/labels.rb