new (PDF::Charts::StdDev)

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