new (PDF::Charts::StdDev)

         # File lib/pdf/charts/stddev.rb, line 110
    110:   def initialize
    111:     @data                       = []
    112:
    113:     @scale                      = Scale.new do |scale|
    114:       scale.range               = 0..6
    115:       scale.step                = 1
    116:       scale.style               = PDF::Writer::StrokeStyle.new(0.25)
    117:       scale.show_labels         = false
    118:       scale.label               = Label.new do |label|
    119:         label.text_size         = 8
    120:         label.text_color        = Color::RGB::Black
    121:         label.pad               = 2
    122:         label.decimal_precision = 1
    123:       end
    124:     end
    125:     @leading_gap              = 10
    126:     @show_labels              = true
    127:     @label                    = Label.new do |label|
    128:       label.height            = 25
    129:       label.background_color  = Color::RGB::Black
    130:       label.text_color        = Color::RGB::White
    131:       label.text_size         = 12
    132:     end
    133:
    134:     @outer_borders            = Marker.new do |marker|
    135:       marker.style            = PDF::Writer::StrokeStyle.new(1.5)
    136:       marker.color            = Color::RGB::Black
    137:     end
    138:     @inner_borders            = nil
    139:
    140:     @dot                      = Marker.new do |marker|
    141:       marker.style            = PDF::Writer::StrokeStyle.new(5)
    142:       marker.color            = Color::RGB::Black
    143:     end
    144:     @bar                      = Marker.new do |marker|
    145:       marker.style            = PDF::Writer::StrokeStyle.new(0.5)
    146:       marker.color            = Color::RGB::Black
    147:     end
    148:     @upper_crossbar           = Marker.new do |marker|
    149:       marker.style            = PDF::Writer::StrokeStyle.new(1)
    150:       marker.color            = Color::RGB::Black
    151:     end
    152:     @lower_crossbar           = Marker.new do |marker|
    153:       marker.style            = PDF::Writer::StrokeStyle.new(1)
    154:       marker.color            = Color::RGB::Black
    155:     end
    156:
    157:     @height                   = 200
    158:     @maximum_width            = 500
    159:     @datapoint_width          = 35
    160:
    161:     yield self if block_given?
    162:   end