draw_x_labels (SVG::Graph::Graph)

    # File temp/Graph/Graph.rb, line 519
          def draw_x_labels
            stagger = x_label_font_size + 5
            if show_x_labels
              label_width = field_width

              count = 0
              for label in get_x_labels
                if step_include_first_x_label == true then
                  step = count % step_x_labels
                else
                  step = (count + 1) % step_x_labels
                end

                if step == 0 then
                  text = @graph.add_element( "text" )
                  text.attributes["class"] = "xAxisLabels"
                  text.text = label.to_s

                  x = count * label_width + x_label_offset( label_width )
                  y = @graph_height + x_label_font_size + 3
                  t = 0 - (font_size / 2)

                  if stagger_x_labels and count % 2 == 1
                    y += stagger
                    @graph.add_element( "path", {
                      "d" => "M#{x} #@graph_height v#{stagger}",
                      "class" => "staggerGuideLine"
                    })
                  end

                  text.attributes["x"] = x.to_s
                  text.attributes["y"] = y.to_s
                  if rotate_x_labels
                    text.attributes["transform"] =
                      "rotate( 90 #{x} #{y-x_label_font_size} )"+
                      " translate( 0 -#{x_label_font_size/4} )"
                    text.attributes["style"] = "text-anchor: start"
                  else
                    text.attributes["style"] = "text-anchor: middle"
                  end
                end

                draw_x_guidelines( label_width, count ) if show_x_guidelines
                count += 1
              end
            end
          end