new (SVG::Graph::Graph)

    # File temp/Graph/Graph.rb, line 77
          def initialize( config )
            @config = config

            raise "fields was not supplied or is empty" unless @config[:fields] &&
            @config[:fields].kind_of?(Array) &&
            @config[:fields].length > 0

            init_with({
              :width                                        => 500,
              :height                                 => 300,
              :show_x_guidelines    => false,
              :show_y_guidelines    => true,
              :show_data_values     => true,

              :min_scale_value      => 0,

              :show_x_labels        => true,
              :stagger_x_labels     => false,
              :rotate_x_labels      => false,

              :show_y_labels        => true,
              :rotate_y_labels      => false,
              :scale_integers       => false,

              :show_x_title         => false,
              :x_title              => 'X Field names',

              :show_y_title         => false,
              :y_title_text_direction => :bt,
              :y_title              => 'Y Scale',

              :show_graph_title               => false,
              :graph_title                      => 'Graph Title',
              :show_graph_subtitle  => false,
              :graph_subtitle                   => 'Graph Sub Title',
              :key                                          => true,
              :key_position                     => :right, # bottom or right

              :font_size            =>12,
              :title_font_size      =>16,
              :subtitle_font_size   =>14,
              :x_label_font_size    =>12,
              :x_title_font_size    =>14,
              :y_label_font_size    =>12,
              :y_title_font_size    =>14,
              :key_font_size        =>10,
            })

            init if methods.include? "init"
            set_defaults if methods.include? "set_defaults"

            init_with config
          end