Sha256: dade875e271153b0ecb1cf2e68a421bca3174066d259faea9bb89f78a9c8047d

Contents?: true

Size: 398 Bytes

Versions: 4

Compression:

Stored size: 398 Bytes

Contents

# By default, <code>chart</code> does not write value labels on the chart.
#
# You can use the <code>:label</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, label: true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
squid-1.4.1 examples/squid/labels.rb
squid-1.4.0 examples/squid/labels.rb
squid-1.3.0 examples/squid/labels.rb
squid-1.2.0 examples/squid/labels.rb